summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2013-09-19 22:38:48 +0000
committerKaelyn Uhrain <rikka@google.com>2013-09-19 22:38:48 +0000
commitaee2ebe5a5381a9d669fb33652501705576fd81d (patch)
treef91e8eb787c2745fcbeba51bccc042f6de78f122 /clang/lib/Sema
parent4eaf6444fa885dce03af1092d7b797ad918e997d (diff)
downloadbcm5719-llvm-aee2ebe5a5381a9d669fb33652501705576fd81d.tar.gz
bcm5719-llvm-aee2ebe5a5381a9d669fb33652501705576fd81d.zip
Don't correct typos in Sema::BuildCXXNestedNameSpecifier with -fms-extensions
When -fms-extensions is enabled, the typo correction was being called here on non-error paths (as in test/SemaTemplate/lookup-dependent-bases.cpp) and correct compilation depended on Sema::CorrectTypo not finding a viable candidate. llvm-svn: 191046
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaCXXScopeSpec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCXXScopeSpec.cpp b/clang/lib/Sema/SemaCXXScopeSpec.cpp
index 327d55f0b3f..f79ad2cc8c7 100644
--- a/clang/lib/Sema/SemaCXXScopeSpec.cpp
+++ b/clang/lib/Sema/SemaCXXScopeSpec.cpp
@@ -484,7 +484,7 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S,
// FIXME: Deal with ambiguities cleanly.
- if (Found.empty() && !ErrorRecoveryLookup) {
+ if (Found.empty() && !ErrorRecoveryLookup && !getLangOpts().MicrosoftExt) {
// We haven't found anything, and we're not recovering from a
// different kind of error, so look for typos.
DeclarationName Name = Found.getLookupName();
OpenPOWER on IntegriCloud