diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-07-23 02:39:52 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-07-23 02:39:52 +0000 |
commit | cec363527e93e89d54daae937532350d41672050 (patch) | |
tree | 14d4612016445d5437029fc97fa1ce11bb4bec59 | |
parent | c7bf3805a1d9c8b9685a2953511f90dfeaee421c (diff) | |
download | bcm5719-llvm-cec363527e93e89d54daae937532350d41672050.tar.gz bcm5719-llvm-cec363527e93e89d54daae937532350d41672050.zip |
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).
llvm-svn: 276509
-rw-r--r-- | clang/include/clang/Sema/DeclSpec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/Sema/DeclSpec.h b/clang/include/clang/Sema/DeclSpec.h index d48a1c2420c..0c6514fc694 100644 --- a/clang/include/clang/Sema/DeclSpec.h +++ b/clang/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. |