diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-10-01 02:44:48 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-10-01 02:44:48 +0000 |
commit | 3be1a1c0b5f3b11457996ce63e7eb5774dadfcde (patch) | |
tree | 7a6cf2869fb8e79b83316366bd3b1316db986f93 /clang/lib/Sema/SemaLookup.cpp | |
parent | e4aaac506c6d3496ae4120b68f03886402c0428c (diff) | |
download | bcm5719-llvm-3be1a1c0b5f3b11457996ce63e7eb5774dadfcde.tar.gz bcm5719-llvm-3be1a1c0b5f3b11457996ce63e7eb5774dadfcde.zip |
Fix typo correction usage of SemaAccess.cpp.
When we check access for lookup results, make sure we propagate the
result's access to the access control APIs; this can be different from
the natural access of the declaration depending on the path used by the lookup.
PR17394.
llvm-svn: 191726
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index c2e23c7ede4..2a096cfd978 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -4409,7 +4409,7 @@ retry_lookup: TRD != TRDEnd; ++TRD) { if (CheckMemberAccess(TC.getCorrectionRange().getBegin(), NSType ? NSType->getAsCXXRecordDecl() : 0, - *TRD) == AR_accessible) + TRD.getPair()) == AR_accessible) TC.addCorrectionDecl(*TRD); } if (TC.isResolved()) |