From 0bb4a159e597e1ba4c4c681a77558b112ac71220 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 12 Oct 2018 06:25:51 +0200 Subject: [PATCH] - skip RESULT opcodes when outputting assembly --- src/scripting/vm/jit_call.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripting/vm/jit_call.cpp b/src/scripting/vm/jit_call.cpp index a8fd19f3d..82e0cd352 100644 --- a/src/scripting/vm/jit_call.cpp +++ b/src/scripting/vm/jit_call.cpp @@ -175,6 +175,8 @@ void JitCompiler::EmitDoCall(asmjit::X86Gp vmfunc) NumParam -= B; ParamOpcodes.Resize(ParamOpcodes.Size() - B); + + pc += C; // Skip RESULTs } void JitCompiler::EmitScriptCall(asmjit::X86Gp vmfunc, asmjit::X86Gp paramsptr)