Skip to content

Commit 5c601fc

Browse files
committed
Further optimisation
1 parent e0d1d78 commit 5c601fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/fizzy/execute.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,8 @@ inline bool invoke_function(const FuncType& func_type, uint32_t func_idx, Instan
456456
{
457457
const auto num_args = func_type.inputs.size();
458458
assert(stack.size() >= num_args);
459-
span<const Value> call_args{stack.rend() - num_args, num_args};
460459

461-
const auto ret = execute(instance, func_idx, call_args.data(), depth + 1);
460+
const auto ret = execute(instance, func_idx, stack.rend() - num_args, depth + 1);
462461
// Bubble up traps
463462
if (ret.trapped)
464463
return false;

0 commit comments

Comments
 (0)