mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
fix a bug handling 'not x' when x is undef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5415127330
commit
1fb5630474
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user