From 9eaffe6521e12b8ced30265b0b870497597ea308 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 5 Oct 2020 16:04:24 +0100 Subject: [PATCH] Further optimisation --- lib/fizzy/execute.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fizzy/execute.cpp b/lib/fizzy/execute.cpp index e2319b6f3..00d14a74c 100644 --- a/lib/fizzy/execute.cpp +++ b/lib/fizzy/execute.cpp @@ -510,9 +510,8 @@ inline bool invoke_function(const FuncType& func_type, uint32_t func_idx, Instan { const auto num_args = func_type.inputs.size(); assert(stack.size() >= num_args); - span call_args{stack.rend() - num_args, num_args}; - const auto ret = execute(instance, func_idx, call_args.data(), depth + 1); + const auto ret = execute(instance, func_idx, stack.rend() - num_args, depth + 1); // Bubble up traps if (ret.trapped) return false;