Skip to content

Commit 46ccdd6

Browse files
committed
[NFC] DI: Used already existing local variable.
Rather than repeating the same expression that already defines it.
1 parent bed91dc commit 46ccdd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/DefiniteInitialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,7 @@ void LifetimeChecker::processUninitializedRelease(SILInstruction *Release,
26072607
// If we see an alloc_box as the pointer, then we're deallocating a 'box' for
26082608
// self. Make sure that the box gets deallocated (not released) since the
26092609
// pointer it contains will be manually cleaned up.
2610-
auto *MUI = dyn_cast<MarkUninitializedInst>(Release->getOperand(0));
2610+
auto *MUI = dyn_cast<MarkUninitializedInst>(Pointer);
26112611

26122612
if (MUI && isa<AllocBoxInst>(MUI->getOperand())) {
26132613
Pointer = MUI->getSingleUserOfType<ProjectBoxInst>();

0 commit comments

Comments
 (0)