From c32d71253c4f00a7c775b1cd85608cf5479594f2 Mon Sep 17 00:00:00 2001 From: Dehao Chen Date: Mon, 12 Sep 2016 20:29:54 +0000 Subject: [PATCH] Fix the bug introduced in r281252. llvm-svn: 281253 --- llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index fc27f0e..5213f3a 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -4589,7 +4589,7 @@ static Value *getTrueOrFalseValue( for (SelectInst *DefSI = SI; DefSI != nullptr && Selects.count(DefSI); DefSI = dyn_cast(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()); } -- 2.7.4