diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-06-04 02:07:10 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-06-04 02:07:10 +0000 |
commit | 404b53e38ca7a77c6e86596ace68f3167cd33922 (patch) | |
tree | caea03223f9aa7003af2e3a6d07a207ae25bd7a2 /lib/Analysis | |
parent | b4528c3d7ee14a42e86ebaa228c556ea81412eca (diff) |
Fold assert-only-used variable into the assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/BranchProbabilityInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/BranchProbabilityInfo.cpp b/lib/Analysis/BranchProbabilityInfo.cpp index d7fc2c3987..d69c0120bb 100644 --- a/lib/Analysis/BranchProbabilityInfo.cpp +++ b/lib/Analysis/BranchProbabilityInfo.cpp @@ -171,12 +171,11 @@ void BranchProbabilityAnalysis::calcPointerHeuristics(BasicBlock *BB) { return; Value *LHS = CI->getOperand(0); - Value *RHS = CI->getOperand(1); if (!LHS->getType()->isPointerTy()) return; - assert(RHS->getType()->isPointerTy()); + assert(CI->getOperand(1)->getType()->isPointerTy()); BasicBlock *Taken = BI->getSuccessor(0); BasicBlock *NonTaken = BI->getSuccessor(1); |