diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-03 03:45:55 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-03 03:45:55 +0000 |
commit | b6cc592ea3195d49bee6c59f24a071d18865cb57 (patch) | |
tree | dbdad383ca4a5eb3c4de70f53e33ae7c62ad6ab3 /clang/lib/Sema/SemaLookup.cpp | |
parent | b7b579aa93346123487e4408084600e7514aa93d (diff) | |
download | bcm5719-llvm-b6cc592ea3195d49bee6c59f24a071d18865cb57.tar.gz bcm5719-llvm-b6cc592ea3195d49bee6c59f24a071d18865cb57.zip |
Fix a bunch of mislayered clang/Lex includes from Sema
llvm-svn: 207896
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index e8ef5ac6b98..db7fe6e6140 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -23,7 +23,7 @@ #include "clang/AST/ExprCXX.h" #include "clang/Basic/Builtins.h" #include "clang/Basic/LangOptions.h" -#include "clang/Lex/Preprocessor.h" +#include "clang/Lex/ModuleLoader.h" #include "clang/Sema/DeclSpec.h" #include "clang/Sema/ExternalSemaSource.h" #include "clang/Sema/Overload.h" @@ -3984,7 +3984,7 @@ TypoCorrection Sema::CorrectTypo(const DeclarationNameInfo &TypoName, if ((Mode == CTK_ErrorRecovery) && getLangOpts().Modules && getLangOpts().ModulesSearchAll) { - if (PP.getModuleLoader().lookupMissingImports(Typo->getName(), + if (getModuleLoader().lookupMissingImports(Typo->getName(), TypoName.getLocStart())) { TypoCorrection TC(TypoName.getName(), (NestedNameSpecifier *)0, 0); TC.setCorrectionRange(SS, TypoName); |