[llvm-commits] [llvm] r134431 - /llvm/trunk/include/llvm/Support/IRBuilder.h

Devang Patel dpatel at apple.com
Tue Jul 5 11:58:22 PDT 2011


Author: dpatel
Date: Tue Jul  5 13:58:22 2011
New Revision: 134431

URL: http://llvm.org/viewvc/llvm-project?rev=134431&view=rev
Log:
Clear debug loc while updating insert point.

Modified:
    llvm/trunk/include/llvm/Support/IRBuilder.h

Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=134431&r1=134430&r2=134431&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Tue Jul  5 13:58:22 2011
@@ -73,6 +73,7 @@
   void SetInsertPoint(BasicBlock *TheBB) {
     BB = TheBB;
     InsertPt = BB->end();
+    CurDbgLocation = DebugLoc();
   }
 
   /// SetInsertPoint - This specifies that created instructions should be





More information about the llvm-commits mailing list