IRGenDebugInfo: Pass Sysroot to DIBuilder::createModule (#29524)

This commit is contained in:
Vedant Kumar
2020-01-28 19:32:52 -08:00
committed by GitHub
parent 2fa2aab3d8
commit 06a829c72e

View File

@@ -660,8 +660,8 @@ private:
}
StringRef Sysroot = IGM.Context.SearchPathOpts.SDKPath;
llvm::DIModule *M =
DBuilder.createModule(Parent, Name, ConfigMacros, RemappedIncludePath);
llvm::DIModule *M = DBuilder.createModule(Parent, Name, ConfigMacros,
RemappedIncludePath, Sysroot);
DIModuleCache.insert({Key, llvm::TrackingMDNodeRef(M)});
return M;
}