From: Devang Patel Date: Tue, 5 Jul 2011 18:58:22 +0000 (+0000) Subject: Clear debug loc while updating insert point. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=15cf76ca758a41185e82f8d7ba963dcbc7ce46e6;p=oota-llvm.git Clear debug loc while updating insert point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134431 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 94592800fe4..3b06fd3e3b3 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -73,6 +73,7 @@ public: void SetInsertPoint(BasicBlock *TheBB) { BB = TheBB; InsertPt = BB->end(); + CurDbgLocation = DebugLoc(); } /// SetInsertPoint - This specifies that created instructions should be