- improve the stack trace when the jit is active

This commit is contained in:
Magnus Norddahl 2018-12-18 11:44:51 +01:00
commit 27ecae265d
5 changed files with 120 additions and 7 deletions

View file

@ -26,9 +26,7 @@ JitFuncPtr JitCompile(VMScriptFunction *sfunc)
code.setLogger(&logger);
JitCompiler compiler(&code, sfunc);
CCFunc *func = compiler.Codegen();
return reinterpret_cast<JitFuncPtr>(AddJitFunction(&code, func));
return reinterpret_cast<JitFuncPtr>(AddJitFunction(&code, &compiler));
}
catch (const CRecoverableError &e)
{