summaryrefslogtreecommitdiffstats
path: root/clang/Lex
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Lex')
-rw-r--r--clang/Lex/Preprocessor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp
index 7deea405485..78e4496a5d5 100644
--- a/clang/Lex/Preprocessor.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud