Use false not zero, as a bool.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 27 Dec 2011 18:27:22 +0000 (18:27 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 27 Dec 2011 18:27:22 +0000 (18:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147292 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyCFG.cpp

index 6d6ad66dad764df695caa7667235b6dbae4a90a9..7c94bcc9978b1d09a579bc1239307f068b771a2d 100644 (file)
@@ -1473,10 +1473,10 @@ static bool ExtractBranchMetadata(BranchInst *BI,
   assert(BI->isConditional() &&
          "Looking for probabilities on unconditional branch?");
   MDNode *ProfileData = BI->getMetadata(LLVMContext::MD_prof);
-  if (!ProfileData || ProfileData->getNumOperands() != 3) return 0;
+  if (!ProfileData || ProfileData->getNumOperands() != 3) return false;
   ConstantInt *CITrue = dyn_cast<ConstantInt>(ProfileData->getOperand(1));
   ConstantInt *CIFalse = dyn_cast<ConstantInt>(ProfileData->getOperand(2));
-  if (!CITrue || !CIFalse) return 0;
+  if (!CITrue || !CIFalse) return false;
   ProbTrue = CITrue->getValue();
   ProbFalse = CIFalse->getValue();
   assert(ProbTrue.getBitWidth() == 32 && ProbFalse.getBitWidth() == 32 &&