Skip to content

Commit

Permalink
fixup! Use stack space from the ExecutionContext
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Apr 14, 2021
1 parent 4e63332 commit 0e1b315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fizzy/stack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ class OperandStack
/// space after the arguments.
/// @param max_stack_height The maximum operand stack height in the function. This
/// excludes @a args and @a num_local_variables.
OperandStack(const Value* args, size_t num_args, size_t num_local_variables, Value* stack_space)
OperandStack(
const Value* args, size_t num_args, size_t num_local_variables, Value* stack_space) noexcept
{
const auto num_locals = num_args + num_local_variables;
// To avoid potential UB when there are no locals and the stack pointer is set to
Expand Down

0 comments on commit 0e1b315

Please sign in to comment.