projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5415127
)
fix a bug handling 'not x' when x is undef.
author
Chris Lattner
<sabre@nondot.org>
Sun, 15 Nov 2009 19:57:43 +0000
(19:57 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 15 Nov 2009 19:57:43 +0000
(19:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88864
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/JumpThreading.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/JumpThreading.cpp
b/lib/Transforms/Scalar/JumpThreading.cpp
index d5ce86aca0c858b2d3ae9f104cfe52aa5c44b42f..de4c118b69ddb580e482c9c9a5fd983a46a246c8 100644
(file)
--- a/
lib/Transforms/Scalar/JumpThreading.cpp
+++ b/
lib/Transforms/Scalar/JumpThreading.cpp
@@
-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;
}
}