diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-12-03 10:15:03 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-12-03 10:15:03 +0000 |
commit | 5eec2679df41a86373e3f8235177ab63fa1a273f (patch) | |
tree | 72c55fc8805e67630395da1fe4e9d9a6bc2601e9 /llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp | |
parent | d5aafcf618611dc8e659e1d53a4a6f303f2a3572 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |