Missed parens.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 27 May 2012 10:56:55 +0000 (10:56 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 27 May 2012 10:56:55 +0000 (10:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157527 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 6837d822e6152e9ee0e0f6fdc618a0cc3abe520a..90fec6a28ead5063e0d60aa9346ff5ac1e3241fc 100644 (file)
@@ -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 (Case *I = &*CR.Range.second-2, *E = &*CR.Range.first-1; 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;