[llvm-commits] [llvm] r169119 - /llvm/trunk/lib/Transforms/Instrumentation/BoundsChecking.cpp

Nuno Lopes nunoplopes at sapo.pt
Mon Dec 3 02:15:03 PST 2012


Author: nlopes
Date: Mon Dec  3 04:15:03 2012
New Revision: 169119

URL: http://llvm.org/viewvc/llvm-project?rev=169119&view=rev
Log:
fix stats for added checks

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/BoundsChecking.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/BoundsChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/BoundsChecking.cpp?rev=169119&r1=169118&r2=169119&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/BoundsChecking.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/BoundsChecking.cpp Mon Dec  3 04:15:03 2012
@@ -108,6 +108,7 @@
     else
       Cmp = 0; // unconditional branch
   }
+  ++ChecksAdded;
 
   Instruction *Inst = Builder->GetInsertPoint();
   BasicBlock *OldBB = Inst->getParent();
@@ -162,7 +163,6 @@
   }
   emitBranchToTrap(Or);
 
-  ++ChecksAdded;
   return true;
 }
 





More information about the llvm-commits mailing list