Skip to content

Commit 826adfd

Browse files
authored
Merge pull request #61154 from apple/egorzhdan/cxxstdlib-asan-fix
[cxx-interop] Fix ASAN error
2 parents c72ddcf + 61d3bde commit 826adfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ ModuleDecl *ClangImporter::Implementation::loadModule(
20062006
if (path.front().Item == ctx.Id_CxxStdlib) {
20072007
ImportPath::Builder adjustedPath(ctx.getIdentifier("std"), importLoc);
20082008
adjustedPath.append(path.getSubmodulePath());
2009-
path = adjustedPath.get().getModulePath(ImportKind::Module);
2009+
path = adjustedPath.copyTo(ctx).getModulePath(ImportKind::Module);
20102010
}
20112011

20122012
if (!DisableSourceImport)

0 commit comments

Comments
 (0)