1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

fix a bug handling 'not x' when x is undef.

llvm-svn: 88864
This commit is contained in:
Chris Lattner 2009-11-15 19:57:43 +00:00
parent 94b8fd17c7
commit 59f69de88f

View File

@ -350,8 +350,9 @@ ComputeValueKnownInPredecessors(Value *V, BasicBlock *BB,PredValueInfo &Result){
// Invert the known values.
for (unsigned i = 0, e = Result.size(); i != e; ++i)
Result[i].first =
cast<ConstantInt>(ConstantExpr::getNot(Result[i].first));
if (Result[i].first)
Result[i].first =
cast<ConstantInt>(ConstantExpr::getNot(Result[i].first));
return true;
}
}