mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add isNativeDynamic() and use it
This commit is contained in:
@@ -2043,8 +2043,7 @@ void swift::maybeAddAccessorsToStorage(TypeChecker &TC,
|
||||
|
||||
if (!dc->isTypeContext()) {
|
||||
// dynamic globals need accessors.
|
||||
if (dc->isModuleScopeContext() && storage->isDynamic() &&
|
||||
!storage->isObjC()) {
|
||||
if (dc->isModuleScopeContext() && storage->isNativeDynamic()) {
|
||||
addTrivialAccessorsToStorage(storage, TC);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user