Skip to content

Commit d47c2d9

Browse files
committed
Add DebugPrefixMap remapping back to module creation
This was accidentally removed in commit 10004e.
1 parent 130a414 commit d47c2d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,11 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
567567
if (Val != DIModuleCache.end())
568568
return cast<llvm::DIModule>(Val->second);
569569

570+
std::string RemappedIncludePath = DebugPrefixMap.remapPath(IncludePath);
570571
StringRef Sysroot = IGM.Context.SearchPathOpts.SDKPath;
571572
llvm::DIModule *M =
572-
DBuilder.createModule(Parent, Name, ConfigMacros, IncludePath, Sysroot);
573+
DBuilder.createModule(Parent, Name, ConfigMacros, RemappedIncludePath,
574+
Sysroot);
573575
DIModuleCache.insert({Key, llvm::TrackingMDNodeRef(M)});
574576
return M;
575577
}

0 commit comments

Comments
 (0)