summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-05 06:38:18 +0000
committerAlp Toker <alp@nuanti.com>2014-01-05 06:38:18 +0000
commitab1b1dcea71c1957490037c7f7088cfbd0512349 (patch)
tree661a31c9574e1c094402ed88bf289505bc447501 /clang/lib/Sema/Sema.cpp
parent34db6523f350a082645b82c6d622dc249140d0f0 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud