diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-05 06:38:18 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-05 06:38:18 +0000 |
commit | ab1b1dcea71c1957490037c7f7088cfbd0512349 (patch) | |
tree | 661a31c9574e1c094402ed88bf289505bc447501 /clang/lib/Sema/Sema.cpp | |
parent | 34db6523f350a082645b82c6d622dc249140d0f0 (diff) | |
download | bcm5719-llvm-ab1b1dcea71c1957490037c7f7088cfbd0512349.tar.gz bcm5719-llvm-ab1b1dcea71c1957490037c7f7088cfbd0512349.zip |
Pre-declare '::type_info' in MicrosoftMode only, not MicrosoftExt
It was previously enabled in both but should only have been part of the drop-in
quirks mode that is 'MicrosoftMode' given that it's only useful for
compatibility with the Microsoft headers/runtime.
llvm-svn: 198548
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 35fd86fd251..1c748f61e06 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -179,7 +179,7 @@ void Sema::Initialize() { } // Initialize Microsoft "predefined C++ types". - if (PP.getLangOpts().MicrosoftExt && PP.getLangOpts().CPlusPlus) { + if (PP.getLangOpts().MicrosoftMode && PP.getLangOpts().CPlusPlus) { if (IdResolver.begin(&Context.Idents.get("type_info")) == IdResolver.end()) PushOnScopeChains(Context.buildImplicitRecord("type_info", TTK_Class), TUScope); |