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:
b4c9d9c
)
Fix false -> NULL conversion from r167115 spotted by Benjamin Kramer.
author
Hans Wennborg
<hans@hanshq.net>
Wed, 31 Oct 2012 14:36:48 +0000
(14:36 +0000)
committer
Hans Wennborg
<hans@hanshq.net>
Wed, 31 Oct 2012 14:36:48 +0000
(14:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167117
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index 9a9ce8568f16c89f32d08c9172728ca1379683ef..b4678ae6999c24fa3aec65349e303798d642c5c5 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
lib/Transforms/Utils/SimplifyCFG.cpp
@@
-3251,7
+3251,7
@@
static Constant* ConstantFold(Instruction *I,
if (CastInst *Cast = dyn_cast<CastInst>(I)) {
Constant *A = dyn_cast<Constant>(I->getOperand(0));
if (!A) A = ConstantPool.lookup(I->getOperand(0));
- if (!A) return
false
;
+ if (!A) return
NULL
;
Constant *C = ConstantExpr::getCast(Cast->getOpcode(), A, Cast->getDestTy());
return C;