summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-07-05 18:58:22 +0000
committerDevang Patel <dpatel@apple.com>2011-07-05 18:58:22 +0000
commit15cf76ca758a41185e82f8d7ba963dcbc7ce46e6 (patch)
tree13e3cabf29a09a90ea349f435577587183bdabac /include
parent338398a288cde58e30fa8a12d219f417ad13ee65 (diff)
downloadllvm-15cf76ca758a41185e82f8d7ba963dcbc7ce46e6.tar.gz
llvm-15cf76ca758a41185e82f8d7ba963dcbc7ce46e6.tar.bz2
llvm-15cf76ca758a41185e82f8d7ba963dcbc7ce46e6.tar.xz
Clear debug loc while updating insert point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/IRBuilder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index 94592800fe..3b06fd3e3b 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