mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fixed the JIT's OP_VTBL check not checking if it's already at the start of the code.
This commit is contained in:
parent
a07d7856c2
commit
b9367caa6f
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ void JitCompiler::EmitVMCall(asmjit::X86Gp vmfunc, VMFunction *target)
|
|||
if (numparams != B)
|
||||
I_Error("OP_CALL parameter count does not match the number of preceding OP_PARAM instructions");
|
||||
|
||||
if ((pc - 1)->op == OP_VTBL)
|
||||
if (pc > sfunc->Code && (pc - 1)->op == OP_VTBL)
|
||||
EmitVtbl(pc - 1);
|
||||
|
||||
FillReturns(pc + 1, C);
|
||||
|
@ -318,7 +318,7 @@ void JitCompiler::EmitNativeCall(VMNativeFunction *target)
|
|||
{
|
||||
using namespace asmjit;
|
||||
|
||||
if ((pc - 1)->op == OP_VTBL)
|
||||
if (pc > sfunc->Code && (pc - 1)->op == OP_VTBL)
|
||||
{
|
||||
I_Error("Native direct member function calls not implemented\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue