[clang] [clang][DebugInfo] Attach `DISubprogram` to additional call variants (PR #166202)
Orlando Cazalet-Hyams via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 6 06:52:21 PST 2025
================
@@ -6277,6 +6277,21 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
pushDestroy(QualType::DK_nontrivial_c_struct, Ret.getAggregateAddress(),
RetTy);
+ if (CalleeDecl) {
+ // Generate function declaration DISuprogram in order to be used
+ // in debug info about call sites.
+ if (CGDebugInfo *DI = getDebugInfo()) {
+ CodeGenFunction CalleeCGF(CGM);
----------------
OCHyams wrote:
Unfortunately I'm also not a Clang front end expert :) but yeah based on the usage pattern elsewhere I think it's probably ok. To be on the safe side would you mind checking in on https://llvm-compile-time-tracker.com/ after merging to ensure there's no performance regression?
https://github.com/llvm/llvm-project/pull/166202
More information about the cfe-commits
mailing list