diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-12-27 18:27:22 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-12-27 18:27:22 +0000 |
commit | 91968489d718b313d4c0b912062e75a82db650e7 (patch) | |
tree | 49eec00a6ed381ce67bb9269e7f574c98b8c386e /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | a6b21ea4ba4ef7250346c9423807415be049ebfd (diff) |
Use false not zero, as a bool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 6d6ad66dad..7c94bcc997 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<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 && |