diff options
author | John McCall <rjmccall@apple.com> | 2010-05-21 20:45:30 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-05-21 20:45:30 +0000 |
commit | aec0371e62be013a2e6466688ccf6a7460880262 (patch) | |
tree | 729e23bf5f2a846744510b6968055659a74ff3d4 /lib/Frontend/PrintParserCallbacks.cpp | |
parent | 3f64a0e3be2c9408f8256bd3aa9f0ce9e268982c (diff) |
Propagate access specifiers to anonymous union members nested within classes.
Fixes <rdar://problem/7987650>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PrintParserCallbacks.cpp')
-rw-r--r-- | lib/Frontend/PrintParserCallbacks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/PrintParserCallbacks.cpp b/lib/Frontend/PrintParserCallbacks.cpp index 258d352452..b032233b3d 100644 --- a/lib/Frontend/PrintParserCallbacks.cpp +++ b/lib/Frontend/PrintParserCallbacks.cpp @@ -161,7 +161,8 @@ namespace { /// ParsedFreeStandingDeclSpec - This method is invoked when a declspec with /// no declarator (e.g. "struct foo;") is parsed. - virtual DeclPtrTy ParsedFreeStandingDeclSpec(Scope *S, DeclSpec &DS) { + virtual DeclPtrTy ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, + DeclSpec &DS) { Out << __FUNCTION__ << "\n"; return DeclPtrTy(); } |