[llvm-branch-commits] [clang] [clang][CallGraphSection] Add type id metadata to indirect call and targets (PR #87573)
Paul Kirth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Apr 29 17:13:28 PDT 2024
================
@@ -6003,6 +6003,11 @@ RValue CodeGenFunction::EmitCall(QualType CalleeType, const CGCallee &OrigCallee
}
}
+ // Set type identifier metadata of indirect calls for call graph section.
+ if (CGM.getCodeGenOpts().CallGraphSection && CallOrInvoke &&
+ CallOrInvoke->isIndirectCall())
----------------
ilovepi wrote:
Is `CallOrInvoke` in scope? it appears to be defined in the block above. If its shadowing, maybe we want to change that or make sure we don't want the shadowed value (e.g. the now out of scope def from line 5990.
https://github.com/llvm/llvm-project/pull/87573
More information about the llvm-branch-commits
mailing list