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
This commit is contained in:
Nadav Rotem 2013-07-08 23:27:43 +00:00
parent c6fbaa9701
commit 7b934079c0

View File

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