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 | f2705196d83a162665d4350bf3bb464972974ee3 (patch) | |
tree | 3f75012d8f6945e85b517adddd3ee53d7727f6b7 /lib/Sema/SemaDecl.cpp | |
parent | 0e450cbd94e5936fdecf42b810069e7becd3938d (diff) |
Clarify the diagnostic for -Wnested-anon-types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 24dffc0299..80543fd532 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/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. |