Skip to content

Commit

Permalink
Successfully compile and run StatusScreen.drawNum with the new JIT
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed May 15, 2020
1 parent 02653ab commit a8f8d8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/scripting/jit/jit_flow.cpp
Expand Up @@ -87,7 +87,7 @@ void JitCompiler::EmitRET()
cc.CreateCondBr(cc.CreateICmpSLE(ConstValueD(retnum), numret), ifbb, endifbb);
cc.SetInsertPoint(ifbb);

IRValue* location = OffsetPtr(ret, retnum * sizeof(VMReturn));
IRValue* location = Load(ToInt8PtrPtr(ret, retnum * sizeof(VMReturn)));

int regtype = B;
int regnum = C;
Expand Down Expand Up @@ -185,7 +185,7 @@ void JitCompiler::EmitRETI()
cc.CreateCondBr(cc.CreateICmpSLE(ConstValueD(retnum), numret), ifbb, endifbb);
cc.SetInsertPoint(ifbb);

IRValue* location = OffsetPtr(ret, retnum * sizeof(VMReturn));
IRValue* location = Load(ToInt8PtrPtr(ret, retnum * sizeof(VMReturn)));
Store(ConstValueD(BCs), ToInt32Ptr(location));

if (a & RET_FINAL)
Expand Down

0 comments on commit a8f8d8b

Please sign in to comment.