summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-01-31 03:11:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-01-31 03:11:12 +0000
commitd202924db623cf8141f9984d38e84ed6656809a4 (patch)
tree08f25529f79cdb7c853a4fec460399f009cec809 /clang/lib/Sema/SemaDecl.cpp
parent9a6d4f3644be9ccdb6282b9b83553968b05a72ed (diff)
downloadbcm5719-llvm-d202924db623cf8141f9984d38e84ed6656809a4.tar.gz
bcm5719-llvm-d202924db623cf8141f9984d38e84ed6656809a4.zip
Clarify the diagnostic for -Wnested-anon-types.
llvm-svn: 174032
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 24dffc0299d..80543fd532b 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -3242,7 +3242,8 @@ Decl *Sema::BuildAnonymousStructOrUnion(Scope *S, DeclSpec &DS,
// This is a popular extension, provided by Plan9, MSVC and GCC, but
// not part of standard C++.
Diag(MemRecord->getLocation(),
- diag::ext_anonymous_record_with_anonymous_type);
+ diag::ext_anonymous_record_with_anonymous_type)
+ << (int)Record->isUnion();
}
} else if (isa<AccessSpecDecl>(*Mem)) {
// Any access specifier is fine.
OpenPOWER on IntegriCloud