Fix a bug in IRBuilder::ClearInsertionPoint. The IR Builder needs to reset both the BB and the insert point inside the BB.

llvm-svn: 185883
This commit is contained in:
Nadav Rotem 2013-07-08 23:27:43 +00:00
parent 135f476b4f
commit 4f396d8043
1 changed files with 1 additions and 0 deletions

View File

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