projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fd3323
)
Next on a pointer increments the pointer, not an iterator
author
Chris Lattner
<sabre@nondot.org>
Sat, 31 Jul 2004 18:40:36 +0000
(18:40 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 31 Jul 2004 18:40:36 +0000
(18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15375
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/BranchFolding.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/BranchFolding.cpp
b/lib/CodeGen/BranchFolding.cpp
index ef28c958859d82870906ae3e62d5e2ca95612897..a82cad27674709d91af408595cd0dcaacec27e72 100644
(file)
--- a/
lib/CodeGen/BranchFolding.cpp
+++ b/
lib/CodeGen/BranchFolding.cpp
@@
-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()) {