We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb5a79b commit 6f2cfa6Copy full SHA for 6f2cfa6
lib/SIL/IR/SILBasicBlock.cpp
@@ -112,10 +112,10 @@ void SILBasicBlock::eraseInstructions() {
112
/// Returns the iterator following the erased instruction.
113
SILBasicBlock::iterator SILBasicBlock::erase(SILInstruction *I) {
114
// Notify the delete handlers that this instruction is going away.
115
- getModule().notifyDeleteHandlers(&*I);
116
- auto *F = getParent();
+ SILModule &module = getModule();
+ module.notifyDeleteHandlers(&*I);
117
auto nextIter = InstList.erase(I);
118
- F->getModule().deallocateInst(I);
+ module.deallocateInst(I);
119
return nextIter;
120
}
121
0 commit comments