diff options
Diffstat (limited to 'Lex/Preprocessor.cpp')
-rw-r--r-- | Lex/Preprocessor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lex/Preprocessor.cpp b/Lex/Preprocessor.cpp index 7deea40548..78e4496a5d 100644 --- a/Lex/Preprocessor.cpp +++ b/Lex/Preprocessor.cpp @@ -376,6 +376,12 @@ static void InitializePredefinedMacros(Preprocessor &PP, Buf.insert(Buf.end(), IDTypedef, IDTypedef+strlen(IDTypedef)); } + // Add __builtin_va_list typedef. + { + const char *VAList = PP.getTargetInfo().getVAListDeclaration(); + Buf.insert(Buf.end(), VAList, VAList+strlen(VAList)); + Buf.push_back('\n'); + } // Get the target #defines. PP.getTargetInfo().getTargetDefines(Buf); |