]> granicus.if.org Git - llvm/commitdiff
Fix the bug introduced in r281252.
authorDehao Chen <dehao@google.com>
Mon, 12 Sep 2016 20:29:54 +0000 (20:29 +0000)
committerDehao Chen <dehao@google.com>
Mon, 12 Sep 2016 20:29:54 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281253 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenPrepare.cpp

index fc27f0ee7b2da857872b8594818cc9c4adda1eda..5213f3aaed5167802b58f21c81954891b7e58608 100644 (file)
@@ -4589,7 +4589,7 @@ static Value *getTrueOrFalseValue(
 
   for (SelectInst *DefSI = SI; DefSI != nullptr && Selects.count(DefSI);
        DefSI = dyn_cast<SelectInst>(V)) {
-    assert(DefSI.getCondition() == SI->getCondition() &&
+    assert(DefSI->getCondition() == SI->getCondition() &&
            "The condition of DefSI does not match with SI");
     V = (isTrue ? DefSI->getTrueValue() : DefSI->getFalseValue());
   }