From 4c5662bae0cce298eb51d27a0d663414fe32dbaa Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 27 Dec 2011 18:27:22 +0000 Subject: [PATCH] Use false not zero, as a bool. llvm-svn: 147292 --- lib/Transforms/Utils/SimplifyCFG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 6d6ad66dad7..7c94bcc9978 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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(ProfileData->getOperand(1)); ConstantInt *CIFalse = dyn_cast(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 &&