[clang] [Clang] Remap paths in OpenMP runtime calls (#82541) (PR #141250)
Dan McGregor via cfe-commits
cfe-commits at lists.llvm.org
Mon May 26 14:40:17 PDT 2025
================
@@ -1370,10 +1375,14 @@ llvm::Value *CGOpenMPRuntime::emitUpdateLocation(CodeGenFunction &CGF,
SrcLocStr = OMPBuilder.getOrCreateDefaultSrcLocStr(SrcLocStrSize);
} else {
std::string FunctionName;
+ std::string FileName;
if (const auto *FD = dyn_cast_or_null<FunctionDecl>(CGF.CurFuncDecl))
FunctionName = FD->getQualifiedNameAsString();
PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc);
- const char *FileName = PLoc.getFilename();
+ if (CGF.getDebugInfo())
----------------
dankm wrote:
And ran the full test suite, it is redundant. I'll replace it with an assertion.
https://github.com/llvm/llvm-project/pull/141250
More information about the cfe-commits
mailing list