summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2016-09-12 20:29:54 +0000
committerDehao Chen <dehao@google.com>2016-09-12 20:29:54 +0000
commitc32d71253c4f00a7c775b1cd85608cf5479594f2 (patch)
treee920d0ab130f552771184f01bd6223014dbb0155 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent9bbb941acfba70d557c572d102412dba91fbd128 (diff)
downloadbcm5719-llvm-c32d71253c4f00a7c775b1cd85608cf5479594f2.tar.gz
bcm5719-llvm-c32d71253c4f00a7c775b1cd85608cf5479594f2.zip
Fix the bug introduced in r281252.
llvm-svn: 281253
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index fc27f0ee7b2..5213f3aaed5 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<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());
}
OpenPOWER on IntegriCloud