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
This commit is contained in:
Nick Lewycky 2011-06-04 02:07:10 +00:00
parent b4528c3d7e
commit 404b53e38c

View File

@ -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);