mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 04:01:31 +00:00
Fix string return value
This commit is contained in:
parent
96d1e2be50
commit
1e82cf877d
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ JitFuncPtr JitCompile(VMScriptFunction* sfunc)
|
|||
JitCompiler compiler(&context, sfunc);
|
||||
IRFunction* func = compiler.Codegen();
|
||||
jit->add(&context);
|
||||
std::string text = context.getFunctionAssembly(func);
|
||||
//std::string text = context.getFunctionAssembly(func);
|
||||
return reinterpret_cast<JitFuncPtr>(jit->getPointerToFunction(func->name));
|
||||
}
|
||||
catch (...)
|
||||
|
|
|
@ -129,7 +129,7 @@ void JitCompiler::EmitRET()
|
|||
break;
|
||||
case REGT_STRING:
|
||||
{
|
||||
cc.CreateCall(setReturnString, { location, (regtype & REGT_KONST) ? ConstS(regnum) : LoadS(regnum) });
|
||||
cc.CreateCall(setReturnString, { OffsetPtr(ret, retnum * sizeof(VMReturn)), (regtype & REGT_KONST) ? ConstS(regnum) : LoadS(regnum) });
|
||||
break;
|
||||
}
|
||||
case REGT_POINTER:
|
||||
|
|
Loading…
Reference in a new issue