Skip to content

Commit 9eaffe6

Browse files
axicchfast
authored andcommitted
Further optimisation
1 parent f9d4dbf commit 9eaffe6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: lib/fizzy/execute.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,8 @@ inline bool invoke_function(const FuncType& func_type, uint32_t func_idx, Instan
510510
{
511511
const auto num_args = func_type.inputs.size();
512512
assert(stack.size() >= num_args);
513-
span<const Value> call_args{stack.rend() - num_args, num_args};
514513

515-
const auto ret = execute(instance, func_idx, call_args.data(), depth + 1);
514+
const auto ret = execute(instance, func_idx, stack.rend() - num_args, depth + 1);
516515
// Bubble up traps
517516
if (ret.trapped)
518517
return false;

0 commit comments

Comments
 (0)