Merge pull request #21783 from xedin/rdar-30933988

[AST] `Decl::is*AccessibleFrom` methods should respect access control…
This commit is contained in:
Pavel Yaskevich
2019-01-14 14:06:44 -08:00
committed by GitHub
16 changed files with 60 additions and 33 deletions

View File

@@ -715,8 +715,7 @@ static bool doesStorageProduceLValue(TypeChecker &TC,
if (!storage->isSettable(useDC, base))
return false;
if (TC.Context.LangOpts.EnableAccessControl &&
!storage->isSetterAccessibleFrom(useDC))
if (!storage->isSetterAccessibleFrom(useDC))
return false;
// If there is no base, or if the base isn't being used, it is settable.