Fix false -> NULL conversion from r167115 spotted by Benjamin Kramer.
[oota-llvm.git] / lib / Transforms / Utils / SimplifyCFG.cpp
index 9a9ce8568f16c89f32d08c9172728ca1379683ef..b4678ae6999c24fa3aec65349e303798d642c5c5 100644 (file)
@@ -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;