Clear debug loc while updating insert point.
authorDevang Patel <dpatel@apple.com>
Tue, 5 Jul 2011 18:58:22 +0000 (18:58 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 5 Jul 2011 18:58:22 +0000 (18:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134431 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IRBuilder.h

index 94592800fe4a2cad5f3fc77d9d27595338d96020..3b06fd3e3b3e80f28f643e92bb97ed0ccb9dfb37 100644 (file)
@@ -73,6 +73,7 @@ public:
   void SetInsertPoint(BasicBlock *TheBB) {
     BB = TheBB;
     InsertPt = BB->end();
+    CurDbgLocation = DebugLoc();
   }
 
   /// SetInsertPoint - This specifies that created instructions should be