Skip to content

Commit 6f2cfa6

Browse files
committed
SILBasicBlock: a small refactoring - NFC
1 parent eb5a79b commit 6f2cfa6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SIL/IR/SILBasicBlock.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ void SILBasicBlock::eraseInstructions() {
112112
/// Returns the iterator following the erased instruction.
113113
SILBasicBlock::iterator SILBasicBlock::erase(SILInstruction *I) {
114114
// Notify the delete handlers that this instruction is going away.
115-
getModule().notifyDeleteHandlers(&*I);
116-
auto *F = getParent();
115+
SILModule &module = getModule();
116+
module.notifyDeleteHandlers(&*I);
117117
auto nextIter = InstList.erase(I);
118-
F->getModule().deallocateInst(I);
118+
module.deallocateInst(I);
119119
return nextIter;
120120
}
121121

0 commit comments

Comments
 (0)