Skip to content

Commit 731a2f2

Browse files
committed
Sema: Fix unused variable warning
1 parent 6478256 commit 731a2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CodeSynthesis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ void swift::maybeAddAccessorsToVariable(VarDecl *var, TypeChecker &TC) {
16991699
getter->setAccess(var->getFormalAccess());
17001700

17011701
// Make a setter if the behavior property has one.
1702-
if (auto valueSetter = valueProp->getSetter()) {
1702+
if (valueProp->getSetter()) {
17031703
ParamDecl *newValueParam = nullptr;
17041704
setter = createSetterPrototype(var, newValueParam, TC);
17051705
if (mightBeMutating && valueProp->isSetterMutating())

0 commit comments

Comments
 (0)