summaryrefslogtreecommitdiff
path: root/include/llvm/IR
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-07-08 23:27:43 +0000
committerNadav Rotem <nrotem@apple.com>2013-07-08 23:27:43 +0000
commit7b934079c044311c56ebf3809c8c0047d88f825a (patch)
treedd19d576cd1355a35c2fb02f82579771eb3d220f /include/llvm/IR
parentc6fbaa97016beb90a7508dd6442c83565c27c241 (diff)
downloadllvm-7b934079c044311c56ebf3809c8c0047d88f825a.tar.gz
llvm-7b934079c044311c56ebf3809c8c0047d88f825a.tar.bz2
llvm-7b934079c044311c56ebf3809c8c0047d88f825a.tar.xz
Fix a bug in IRBuilder::ClearInsertionPoint. The IR Builder needs to reset both the BB and the insert point inside the BB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR')
-rw-r--r--include/llvm/IR/IRBuilder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h
index f11d3b4e0b..cdf840f541 100644
--- a/include/llvm/IR/IRBuilder.h
+++ b/include/llvm/IR/IRBuilder.h
@@ -71,6 +71,7 @@ public:
/// inserted into a block.
void ClearInsertionPoint() {
BB = 0;
+ InsertPt = 0;
}
BasicBlock *GetInsertBlock() const { return BB; }