summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-05-21 20:45:30 +0000
committerJohn McCall <rjmccall@apple.com>2010-05-21 20:45:30 +0000
commitb54367d2f8f776583c2c77075fc0460e663c743f (patch)
treefc24b978d014364289eef4d16779a2cf5e020135 /clang/lib/Frontend
parent304a9537e116d54d2d9af9fa0b48009aac3b9926 (diff)
downloadbcm5719-llvm-b54367d2f8f776583c2c77075fc0460e663c743f.tar.gz
bcm5719-llvm-b54367d2f8f776583c2c77075fc0460e663c743f.zip
Propagate access specifiers to anonymous union members nested within classes.
Fixes <rdar://problem/7987650>. llvm-svn: 104376
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/PrintParserCallbacks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PrintParserCallbacks.cpp b/clang/lib/Frontend/PrintParserCallbacks.cpp
index 258d352452e..b032233b3d3 100644
--- a/clang/lib/Frontend/PrintParserCallbacks.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud