diff options
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 798244c3d2..aeba32f96a 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -575,9 +575,11 @@ void Preprocessor::LexAfterModuleImport(Token &Result) { return; // Load the module. - (void)TheModuleLoader.loadModule(ModuleImportLoc, - *Result.getIdentifierInfo(), - Result.getLocation()); + llvm::SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> Path; + Path.push_back(std::make_pair(Result.getIdentifierInfo(), + Result.getLocation())); + + (void)TheModuleLoader.loadModule(ModuleImportLoc, Path); } void Preprocessor::AddCommentHandler(CommentHandler *Handler) { |