Skip to content

Commit 64c170b

Browse files
committed
AST: remove unnecessary variable (NFC)
This removes the accidental variable that was being created during the switch. The value is available without the variable.
1 parent b86fa52 commit 64c170b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6543,7 +6543,7 @@ DeclName AbstractFunctionDecl::getEffectiveFullName() const {
65436543
auto &ctx = getASTContext();
65446544
auto storage = accessor->getStorage();
65456545
auto subscript = dyn_cast<SubscriptDecl>(storage);
6546-
switch (auto accessorKind = accessor->getAccessorKind()) {
6546+
switch (accessor->getAccessorKind()) {
65476547
// These don't have any extra implicit parameters.
65486548
case AccessorKind::Address:
65496549
case AccessorKind::MutableAddress:

0 commit comments

Comments
 (0)