Fix a bug in IRBuilder::ClearInsertionPoint. The IR Builder needs to reset both the...
authorNadav Rotem <nrotem@apple.com>
Mon, 8 Jul 2013 23:27:43 +0000 (23:27 +0000)
committerNadav Rotem <nrotem@apple.com>
Mon, 8 Jul 2013 23:27:43 +0000 (23:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185883 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/IRBuilder.h

index f11d3b4e0b270269b85d6b6c30527d3aa392aeb7..cdf840f54156b26c4296e21898faddcafca5773c 100644 (file)
@@ -71,6 +71,7 @@ public:
   /// inserted into a block.
   void ClearInsertionPoint() {
     BB = 0;
+    InsertPt = 0;
   }
 
   BasicBlock *GetInsertBlock() const { return BB; }