Skip to content

Commit a3a4d4e

Browse files
committed
add stored property default arg symbols
1 parent 340d4d2 commit a3a4d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/TBDGen/TBDGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void TBDGenVisitor::visitAbstractFunctionDecl(AbstractFunctionDecl *AFD) {
224224
// call site.
225225
auto index = 0;
226226
for (auto *param : *AFD->getParameters()) {
227-
if (param->getDefaultValue())
227+
if (param->isDefaultArgument())
228228
addSymbol(SILDeclRef::getDefaultArgGenerator(AFD, index));
229229
index++;
230230
}

0 commit comments

Comments
 (0)