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.
2 parents 333f0db + 0854397 commit 4b646bfCopy full SHA for 4b646bf
lib/SILOptimizer/Mandatory/OSLogOptimization.cpp
@@ -792,10 +792,10 @@ bool isAutoGeneratedInitOfOSLogMessage(SILFunction &fun) {
792
Decl *decl = declContext->getAsDecl();
793
if (!decl)
794
return false;
795
- ConstructorDecl *cdecl = dyn_cast<ConstructorDecl>(decl);
796
- if (!cdecl)
+ ConstructorDecl *ctor = dyn_cast<ConstructorDecl>(decl);
+ if (!ctor)
797
798
- DeclContext *parentContext = cdecl->getParent();
+ DeclContext *parentContext = ctor->getParent();
799
if (!parentContext)
800
801
NominalTypeDecl *typeDecl = parentContext->getSelfNominalTypeDecl();
0 commit comments