Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 2857866

Browse files
committed
Fix false -> NULL conversion from r167115 spotted by Benjamin Kramer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167117 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent b4c9d9c commit 2857866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3251,7 +3251,7 @@ static Constant* ConstantFold(Instruction *I,
32513251
if (CastInst *Cast = dyn_cast<CastInst>(I)) {
32523252
Constant *A = dyn_cast<Constant>(I->getOperand(0));
32533253
if (!A) A = ConstantPool.lookup(I->getOperand(0));
3254-
if (!A) return false;
3254+
if (!A) return NULL;
32553255

32563256
Constant *C = ConstantExpr::getCast(Cast->getOpcode(), A, Cast->getDestTy());
32573257
return C;

0 commit comments

Comments
 (0)