================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to