From: Richard Smith Date: Sat, 23 Jul 2016 02:39:52 +0000 (+0000) Subject: Work around MSVC's lack of support for unrestricted unions by making this X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=402e84934bdb2b5da17762df1e2a36aded207778;p=clang Work around MSVC's lack of support for unrestricted unions by making this struct a bit bigger under MSVC (this shouldn't be a big deal; we typically allocate no more than two of these at a time, on the stack). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276509 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/DeclSpec.h b/include/clang/Sema/DeclSpec.h index d48a1c2420..0c6514fc69 100644 --- a/include/clang/Sema/DeclSpec.h +++ b/include/clang/Sema/DeclSpec.h @@ -1752,13 +1752,17 @@ private: /// \brief The asm label, if specified. Expr *AsmLabel; +#ifndef _MSC_VER union { +#endif /// InlineParams - This is a local array used for the first function decl /// chunk to avoid going to the heap for the common case when we have one /// function chunk in the declarator. DeclaratorChunk::ParamInfo InlineParams[16]; DecompositionDeclarator::Binding InlineBindings[16]; +#ifndef _MSC_VER }; +#endif /// \brief If this is the second or subsequent declarator in this declaration, /// the location of the comma before this declarator.