mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +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
30ced415ce
commit
ab617c3a91
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