File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ SILLinkage SILDeclRef::getLinkage(ForDefinition_t forDefinition) const {
233
233
234
234
// Native function-local declarations have shared linkage.
235
235
// FIXME: @objc declarations should be too, but we currently have no way
236
- // of marking them "used" other than making them external.
236
+ // of marking them "used" other than making them external.
237
237
ValueDecl *d = getDecl ();
238
238
DeclContext *moduleContext = d->getDeclContext ();
239
239
while (!moduleContext->isModuleScopeContext ()) {
@@ -335,6 +335,10 @@ SILLinkage SILDeclRef::getLinkage(ForDefinition_t forDefinition) const {
335
335
}
336
336
}
337
337
338
+ if (isEnumElement ()) {
339
+ limit = Limit::OnDemand;
340
+ }
341
+
338
342
auto effectiveAccess = d->getEffectiveAccess ();
339
343
340
344
// Private setter implementations for an internal storage declaration should
You can’t perform that action at this time.
0 commit comments