mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
c6fbaa9701
commit
7b934079c0
@ -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
Block a user