Skip to content

Commit ec13c07

Browse files
authored
Merge pull request #15210 from adrian-prantl/cleanup-1
2 parents 19cdbda + 2b1811e commit ec13c07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/IRGen/DebugTypeInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ DebugTypeInfo DebugTypeInfo::getLocalVariable(DeclContext *DC,
7777
}
7878

7979
// DynamicSelfType is also sugar as far as debug info is concerned.
80-
auto DeclSelfType = DeclType;
80+
auto Sugared = DeclType;
8181
if (auto DynSelfTy = DeclType->getAs<DynamicSelfType>())
82-
DeclSelfType = DynSelfTy->getSelfType();
82+
Sugared = DynSelfTy->getSelfType();
8383

8484
// Prefer the original, potentially sugared version of the type if
8585
// the type hasn't been mucked with by an optimization pass.
86-
auto *Type = DeclSelfType->isEqual(RealType) ? DeclType.getPointer()
87-
: RealType.getPointer();
86+
auto *Type = Sugared->isEqual(RealType) ? DeclType.getPointer()
87+
: RealType.getPointer();
8888
return getFromTypeInfo(DC, GE, Type, Info);
8989
}
9090

0 commit comments

Comments
 (0)