mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- fixed code generation for dummy results.
This commit is contained in:
parent
ef2c433a8b
commit
19df662348
1 changed files with 3 additions and 2 deletions
|
@ -1068,16 +1068,17 @@ ExpEmit FunctionCallEmitter::EmitCall(VMFunctionBuilder *build, TArray<ExpEmit>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (virtualselfreg == -1)
|
if (virtualselfreg == -1)
|
||||||
{
|
{
|
||||||
build->Emit(OP_CALL_K, build->GetConstantAddress(target), paramcount, returns.Size());
|
build->Emit(OP_CALL_K, build->GetConstantAddress(target), paramcount, vm_jit ? target->Proto->ReturnTypes.Size() : returns.Size());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ExpEmit funcreg(build, REGT_POINTER);
|
ExpEmit funcreg(build, REGT_POINTER);
|
||||||
|
|
||||||
build->Emit(OP_VTBL, funcreg.RegNum, virtualselfreg, target->VirtualIndex);
|
build->Emit(OP_VTBL, funcreg.RegNum, virtualselfreg, target->VirtualIndex);
|
||||||
build->Emit(OP_CALL, funcreg.RegNum, paramcount, returns.Size());
|
build->Emit(OP_CALL, funcreg.RegNum, paramcount, vm_jit? target->Proto->ReturnTypes.Size() : returns.Size());
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(returns.Size() < 2 || ReturnRegs != nullptr);
|
assert(returns.Size() < 2 || ReturnRegs != nullptr);
|
||||||
|
|
Loading…
Reference in a new issue