forked from OSchip/llvm-project
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:
parent
135f476b4f
commit
4f396d8043
|
@ -71,6 +71,7 @@ public:
|
|||
/// inserted into a block.
|
||||
void ClearInsertionPoint() {
|
||||
BB = 0;
|
||||
InsertPt = 0;
|
||||
}
|
||||
|
||||
BasicBlock *GetInsertBlock() const { return BB; }
|
||||
|
|
Loading…
Reference in New Issue