mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 17:31:33 +00:00
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:
parent
b4528c3d7e
commit
404b53e38c
@ -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