mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-29 22:52:18 +00:00
fix ISD::BRCONDTWOWAY codegen to not deference the end() iterator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21193 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9184bfbbf4
commit
706471e291
@ -1000,7 +1000,7 @@ void ISel::SelectBranchCC(SDOperand N)
|
||||
|
||||
// Iterate to the next basic block, unless we're already at the end of the
|
||||
ilist<MachineBasicBlock>::iterator It = BB, E = BB->getParent()->end();
|
||||
if (It != E) ++It;
|
||||
if (++It == E) It = BB;
|
||||
|
||||
// If this is a two way branch, then grab the fallthrough basic block argument
|
||||
// and build a PowerPC branch pseudo-op, suitable for long branch conversion
|
||||
|
Loading…
x
Reference in New Issue
Block a user