projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5aafcf
)
fix stats for added checks
author
Nuno Lopes
<nunoplopes@sapo.pt>
Mon, 3 Dec 2012 10:15:03 +0000
(10:15 +0000)
committer
Nuno Lopes
<nunoplopes@sapo.pt>
Mon, 3 Dec 2012 10:15:03 +0000
(10:15 +0000)
llvm-svn: 169119
llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
index
2d5d560
..
6415f7a
100644
(file)
--- 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;
}