forked from OSchip/llvm-project
fix a bug handling 'not x' when x is undef.
llvm-svn: 88864
This commit is contained in:
parent
fb7613a5d6
commit
5f037b6439
|
@ -350,8 +350,9 @@ ComputeValueKnownInPredecessors(Value *V, BasicBlock *BB,PredValueInfo &Result){
|
||||||
|
|
||||||
// Invert the known values.
|
// Invert the known values.
|
||||||
for (unsigned i = 0, e = Result.size(); i != e; ++i)
|
for (unsigned i = 0, e = Result.size(); i != e; ++i)
|
||||||
Result[i].first =
|
if (Result[i].first)
|
||||||
cast<ConstantInt>(ConstantExpr::getNot(Result[i].first));
|
Result[i].first =
|
||||||
|
cast<ConstantInt>(ConstantExpr::getNot(Result[i].first));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue