diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-15 20:12:13 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-15 20:12:13 +0000 |
commit | 76b1c842c3932d3f83b3abf999dd9622e3e5fb12 (patch) | |
tree | 8b61136d01e1d7216a1a1f17c553937c7a730068 /lib/Lex/Preprocessor.cpp | |
parent | 94b15fbc3a10cdfb1639528a8a773b66a1e7cd9e (diff) |
(Hopefully) instantiate dependent array types correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 38a6919be3..3afa4ee6b2 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -488,6 +488,9 @@ static void InitializePredefinedMacros(Preprocessor &PP, else if (0) // STDC94 ? DefineBuiltinMacro(Buf, "__STDC_VERSION__=199409L"); + if (PP.getLangOptions().CPlusPlus0x) + DefineBuiltinMacro(Buf, "__GXX_EXPERIMENTAL_CXX0X__"); + if (PP.getLangOptions().Freestanding) DefineBuiltinMacro(Buf, "__STDC_HOSTED__=0"); else |