Fix the bug introduced in r281252.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281253 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dehao Chen 2016-09-12 20:29:54 +00:00
parent 8c8aa02da6
commit 77ad09277a

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