diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-31 03:11:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-31 03:11:12 +0000 |
commit | d202924db623cf8141f9984d38e84ed6656809a4 (patch) | |
tree | 08f25529f79cdb7c853a4fec460399f009cec809 /clang/lib/Sema/SemaDecl.cpp | |
parent | 9a6d4f3644be9ccdb6282b9b83553968b05a72ed (diff) | |
download | bcm5719-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.cpp | 3 |
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. |