Skip to content

Commit 35edc11

Browse files
committed
[gardening] Be more specific about a type used in a method name. NFC.
1 parent 3f6c4b9 commit 35edc11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SILOptimizer/Mandatory/DefiniteInitialization.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ bool LifetimeChecker::isInitializedAtUse(const DIMemoryUse &Use,
26122612
// Top Level Driver
26132613
//===----------------------------------------------------------------------===//
26142614

2615-
static bool processMemoryObject(SILInstruction *I) {
2615+
static bool processMemoryObject(MarkUninitializedInst *I) {
26162616
DEBUG(llvm::dbgs() << "*** Definite Init looking at: " << *I << "\n");
26172617
DIMemoryObjectInfo MemInfo(I);
26182618

@@ -2639,8 +2639,8 @@ static bool checkDefiniteInitialization(SILFunction &Fn) {
26392639
for (auto &BB : Fn) {
26402640
for (auto I = BB.begin(), E = BB.end(); I != E; ++I) {
26412641
SILInstruction *Inst = &*I;
2642-
if (isa<MarkUninitializedInst>(Inst))
2643-
Changed |= processMemoryObject(Inst);
2642+
if (auto *MUI = dyn_cast<MarkUninitializedInst>(Inst))
2643+
Changed |= processMemoryObject(MUI);
26442644
}
26452645
}
26462646
return Changed;

0 commit comments

Comments
 (0)