summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-12-03 10:15:03 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-12-03 10:15:03 +0000
commit5eec2679df41a86373e3f8235177ab63fa1a273f (patch)
tree72c55fc8805e67630395da1fe4e9d9a6bc2601e9 /llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
parentd5aafcf618611dc8e659e1d53a4a6f303f2a3572 (diff)
downloadbcm5719-llvm-5eec2679df41a86373e3f8235177ab63fa1a273f.tar.gz
bcm5719-llvm-5eec2679df41a86373e3f8235177ab63fa1a273f.zip
fix stats for added checks
llvm-svn: 169119
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
index 2d5d5603c09..6415f7ae53b 100644
--- a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
+++ b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
@@ -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;
}
OpenPOWER on IntegriCloud