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
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp
index 9a9ce85..b4678ae 100644
--- a/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -3251,7 +3251,7 @@
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;