1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-27 21:42:05 +00:00

Fix tailcall case in EmitterContext (#1235)

This commit is contained in:
Ficture Seven 2020-05-11 04:04:52 +04:00 committed by GitHub
parent 492bb6ee5f
commit 4b79b78b8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -609,15 +609,10 @@ namespace ARMeilleure.Translation
private static bool EndsWithUnconditional(BasicBlock block) private static bool EndsWithUnconditional(BasicBlock block)
{ {
Operation lastOp = block.GetLastOp() as Operation; return block.Operations.Last is Operation lastOp &&
(lastOp.Instruction == Instruction.Branch ||
if (lastOp == null) lastOp.Instruction == Instruction.Return ||
{ lastOp.Instruction == Instruction.Tailcall);
return false;
}
return lastOp.Instruction == Instruction.Branch ||
lastOp.Instruction == Instruction.Return;
} }
public ControlFlowGraph GetControlFlowGraph() public ControlFlowGraph GetControlFlowGraph()