mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
After a custom inserter, in a block which has constant instructions,
update the current basic block in addition to the current insert position, so that they remain consistent. This fixes rdar://8204072. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -276,6 +276,7 @@ std::pair<unsigned, bool> FastISel::getRegForGEPIndex(const Value *Idx) {
|
||||
void FastISel::recomputeInsertPt() {
|
||||
if (getLastLocalValue()) {
|
||||
FuncInfo.InsertPt = getLastLocalValue();
|
||||
FuncInfo.MBB = FuncInfo.InsertPt->getParent();
|
||||
++FuncInfo.InsertPt;
|
||||
} else
|
||||
FuncInfo.InsertPt = FuncInfo.MBB->getFirstNonPHI();
|
||||
|
Reference in New Issue
Block a user