Fix the bug introduced in r281252.

llvm-svn: 281253
This commit is contained in:
Dehao Chen 2016-09-12 20:29:54 +00:00
parent 9bbb941acf
commit c32d71253c
1 changed files with 1 additions and 1 deletions

View 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());
}