diff options
Diffstat (limited to 'backend/lib/CodeGen/MachineOutliner.cpp')
| -rw-r--r-- | backend/lib/CodeGen/MachineOutliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/lib/CodeGen/MachineOutliner.cpp b/backend/lib/CodeGen/MachineOutliner.cpp index bdc4d2b..a36a740 100644 --- a/backend/lib/CodeGen/MachineOutliner.cpp +++ b/backend/lib/CodeGen/MachineOutliner.cpp @@ -473,7 +473,7 @@ buildSequenceGroups(std::vector<InstructionSegment> &Segments, if (!Inserted) return std::unexpected(Inserted.error()); for (MachineInstr *Instruction : Candidate.Instructions) { - auto Removed = Candidate.Block->removeInstruction(*Instruction); + auto Removed = Instruction->eraseFromParent(); if (!Removed) return std::unexpected(Removed.error()); } |
