Skip to content
Snippets Groups Projects
Commit 402e8493 authored by Richard Smith's avatar Richard Smith
Browse files

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
parent 9ae609fe
No related branches found
No related tags found
No related merge requests found
...@@ -1752,13 +1752,17 @@ private: ...@@ -1752,13 +1752,17 @@ private:
/// \brief The asm label, if specified. /// \brief The asm label, if specified.
Expr *AsmLabel; Expr *AsmLabel;
#ifndef _MSC_VER
union { union {
#endif
/// InlineParams - This is a local array used for the first function decl /// 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 /// chunk to avoid going to the heap for the common case when we have one
/// function chunk in the declarator. /// function chunk in the declarator.
DeclaratorChunk::ParamInfo InlineParams[16]; DeclaratorChunk::ParamInfo InlineParams[16];
DecompositionDeclarator::Binding InlineBindings[16]; DecompositionDeclarator::Binding InlineBindings[16];
#ifndef _MSC_VER
}; };
#endif
/// \brief If this is the second or subsequent declarator in this declaration, /// \brief If this is the second or subsequent declarator in this declaration,
/// the location of the comma before this declarator. /// the location of the comma before this declarator.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment