[llvm] r281253 - Fix the bug introduced in r281252.

Dehao Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 12 13:29:55 PDT 2016


Author: dehao
Date: Mon Sep 12 15:29:54 2016
New Revision: 281253

URL: http://llvm.org/viewvc/llvm-project?rev=281253&view=rev
Log:
Fix the bug introduced in r281252.

Modified:
    llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp?rev=281253&r1=281252&r2=281253&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp Mon Sep 12 15:29:54 2016
@@ -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());
   }




More information about the llvm-commits mailing list