diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-12 22:49:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-12 22:49:06 +0000 |
commit | 4920f1ffb62b13b88e579476803c093f97f3e17f (patch) | |
tree | 057ff38bb1e1460a260952a28c27369b756b82b6 /Driver/clang.cpp | |
parent | 1e0ead411bd1eca1b18e08684b79993e40dae1db (diff) |
Implement support for anonymous structs and unions in C. Both C and
C++ handle anonymous structs/unions in the same way. Addresses several
bugs:
<rdar://problem/6259534>
<rdar://problem/6481130>
<rdar://problem/6483159>
The test case in PR clang/1750 now passes with -fsyntax-only, but
CodeGen for inline assembler still fails.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 6b3507e3a6..51b1335f9c 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -714,9 +714,6 @@ static void InitializeDiagnostics(Diagnostic &Diags) { Diags.setDiagnosticMapping(diag::warn_implicit_function_decl, diag::MAP_IGNORE); - if (MSExtensions) // MS allows unnamed struct/union fields. - Diags.setDiagnosticMapping(diag::w_no_declarators, diag::MAP_IGNORE); - // If -pedantic-errors is set, turn extensions that warn by default into // errors. if (ErrorOnExtensions) { |