Add isNativeDynamic() and use it

This commit is contained in:
Arnold Schwaighofer
2018-11-14 11:58:57 -08:00
parent c3230dfc5c
commit 40f0c43e31
7 changed files with 12 additions and 9 deletions

View File

@@ -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;
}