mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-14 06:37:33 +00:00
fix stats for added checks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c65317b956
commit
53916aa78f
@ -108,6 +108,7 @@ void BoundsChecking::emitBranchToTrap(Value *Cmp) {
|
||||
else
|
||||
Cmp = 0; // unconditional branch
|
||||
}
|
||||
++ChecksAdded;
|
||||
|
||||
Instruction *Inst = Builder->GetInsertPoint();
|
||||
BasicBlock *OldBB = Inst->getParent();
|
||||
@ -162,7 +163,6 @@ bool BoundsChecking::instrument(Value *Ptr, Value *InstVal) {
|
||||
}
|
||||
emitBranchToTrap(Or);
|
||||
|
||||
++ChecksAdded;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user