1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Fold assert-only-used variable into the assert.

llvm-svn: 132620
This commit is contained in:
Nick Lewycky 2011-06-04 02:07:10 +00:00
parent c894f04286
commit 813e24b6a9

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