mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 11:39:35 +00:00
Next on a pointer increments the pointer, not an iterator
llvm-svn: 15375
This commit is contained in:
parent
b28bc78d0a
commit
ecca71ce92
@ -114,7 +114,7 @@ bool BranchFolder::OptimizeBlock(MachineBasicBlock *MBB,
|
||||
// explicitly.
|
||||
if (MBB->empty()) {
|
||||
if (MBB->pred_empty()) return false;
|
||||
MachineFunction::iterator FallThrough = next(MBB);
|
||||
MachineFunction::iterator FallThrough =next(MachineFunction::iterator(MBB));
|
||||
assert(FallThrough != MBB->getParent()->end() &&
|
||||
"Fell off the end of the function!");
|
||||
while (!MBB->pred_empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user