mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 04:35:46 +00:00
Fix tailcall case in EmitterContext (#1235)
This commit is contained in:
parent
492bb6ee5f
commit
4b79b78b8c
1 changed files with 4 additions and 9 deletions
|
@ -609,15 +609,10 @@ namespace ARMeilleure.Translation
|
|||
|
||||
private static bool EndsWithUnconditional(BasicBlock block)
|
||||
{
|
||||
Operation lastOp = block.GetLastOp() as Operation;
|
||||
|
||||
if (lastOp == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return lastOp.Instruction == Instruction.Branch ||
|
||||
lastOp.Instruction == Instruction.Return;
|
||||
return block.Operations.Last is Operation lastOp &&
|
||||
(lastOp.Instruction == Instruction.Branch ||
|
||||
lastOp.Instruction == Instruction.Return ||
|
||||
lastOp.Instruction == Instruction.Tailcall);
|
||||
}
|
||||
|
||||
public ControlFlowGraph GetControlFlowGraph()
|
||||
|
|
Loading…
Reference in a new issue