summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-05-27 10:24:52 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-05-27 10:24:52 +0000
commit4b8f8e75e6de6cca23b28d94c2fb2d805d8590ef (patch)
tree7706a127279225d6d21f890713b417e21b7c5e0c /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent48ff2751c1de415de2c9104e82c5fbef1849ec1b (diff)
downloadbcm5719-llvm-4b8f8e75e6de6cca23b28d94c2fb2d805d8590ef.tar.gz
bcm5719-llvm-4b8f8e75e6de6cca23b28d94c2fb2d805d8590ef.zip
r157525 didn't work, just disable iterator checking.
This is obviosly right but I don't see how to do this with proper vector iterators without building a horrible mess of workarounds. llvm-svn: 157526
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 1330a262139..6837d822e61 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -1991,7 +1991,7 @@ bool SelectionDAGBuilder::handleSmallSwitchRange(CaseRec& CR,
// The last case block won't fall through into 'NextBlock' if we emit the
// branches in this order. See if rearranging a case value would help.
// We start at the bottom as it's the case with the least weight.
- for (CaseItr I = CR.Range.second-2, E = CR.Range.first; I >= E; --I) {
+ for (Case *I = &*CR.Range.second-2, *E = &*CR.Range.first-1; I != E; --I){
if (I->BB == NextBlock) {
std::swap(*I, BackCase);
break;
OpenPOWER on IntegriCloud