Skip to content

Commit 9f55dec

Browse files
committed
AST: Fix an unused variable warning
1 parent c677d14 commit 9f55dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/DeclContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ unsigned DeclContext::getSyntacticDepth() const {
658658

659659
unsigned DeclContext::getSemanticDepth() const {
660660
// For extensions, count the depth of the nominal type being extended.
661-
if (auto ext = dyn_cast<ExtensionDecl>(this)) {
661+
if (isa<ExtensionDecl>(this)) {
662662
if (auto nominal = getAsNominalTypeOrNominalTypeExtensionContext())
663663
return nominal->getSemanticDepth();
664664

0 commit comments

Comments
 (0)