mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Fold assert-only-used variable into the assert.
llvm-svn: 132620
This commit is contained in:
parent
c894f04286
commit
813e24b6a9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user