[clang] [Clang] Remap paths in OpenMP runtime calls (#82541) (PR #141250)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Tue May 27 13:49:26 PDT 2025
================
@@ -1352,7 +1352,12 @@ static StringRef getIdentStringFromSourceLocation(CodeGenFunction &CGF,
llvm::raw_svector_ostream OS(Buffer);
// Build debug location
PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc);
- OS << ";" << PLoc.getFilename() << ";";
+ OS << ";";
+ if (CGF.getDebugInfo())
+ OS << CGF.getDebugInfo()->remapDIPath(PLoc.getFilename());
----------------
alexey-bataev wrote:
```
if (auto *DbgInfo = CGF.getDebugInfo())
OS << DbgInfo->remapDIPath(PLoc.getFilename());
```
here and in other places
https://github.com/llvm/llvm-project/pull/141250
More information about the cfe-commits
mailing list