File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1714,7 +1714,6 @@ bool ClangImporter::canImportModule(Located<Identifier> moduleID) {
1714
1714
1715
1715
ModuleDecl *ClangImporter::Implementation::loadModuleClang (
1716
1716
SourceLoc importLoc, ArrayRef<Located<Identifier>> path) {
1717
- auto &clangContext = getClangASTContext ();
1718
1717
auto &clangHeaderSearch = getClangPreprocessor ().getHeaderSearchInfo ();
1719
1718
1720
1719
// Look up the top-level module first, to see if it exists at all.
@@ -1728,8 +1727,9 @@ ModuleDecl *ClangImporter::Implementation::loadModuleClang(
1728
1727
SmallVector<std::pair<clang::IdentifierInfo *, clang::SourceLocation>, 4 >
1729
1728
clangPath;
1730
1729
for (auto component : path) {
1731
- clangPath.push_back ({&clangContext.Idents .get (component.Item .str ()),
1732
- exportSourceLoc (component.Loc )});
1730
+ clangPath.emplace_back (
1731
+ getClangPreprocessor ().getIdentifierInfo (component.Item .str ()),
1732
+ exportSourceLoc (component.Loc ));
1733
1733
}
1734
1734
1735
1735
auto &rawDiagClient = Instance->getDiagnosticClient ();
You can’t perform that action at this time.
0 commit comments