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:
9184bfb
)
fix ISD::BRCONDTWOWAY codegen to not deference the end() iterator
author
Nate Begeman
<natebegeman@mac.com>
Sat, 9 Apr 2005 23:35:05 +0000
(23:35 +0000)
committer
Nate Begeman
<natebegeman@mac.com>
Sat, 9 Apr 2005 23:35:05 +0000
(23:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21193
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCISelPattern.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCISelPattern.cpp
b/lib/Target/PowerPC/PPCISelPattern.cpp
index 44e041a8ba5eb07b0fa641fa76202d68b2d3e215..02ad4e4ad4b724e0b6cbf17eda82c98fe91344e9 100644
(file)
--- a/
lib/Target/PowerPC/PPCISelPattern.cpp
+++ b/
lib/Target/PowerPC/PPCISelPattern.cpp
@@
-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