diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-07-08 23:27:43 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-07-08 23:27:43 +0000 |
commit | 7b934079c044311c56ebf3809c8c0047d88f825a (patch) | |
tree | dd19d576cd1355a35c2fb02f82579771eb3d220f /include/llvm/IR | |
parent | c6fbaa97016beb90a7508dd6442c83565c27c241 (diff) | |
download | llvm-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.h | 1 |
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; } |