================ @@ -5693,6 +5699,36 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, AllocAlignAttrEmitter AllocAlignAttrEmitter(*this, TargetDecl, CallArgs); Attrs = AllocAlignAttrEmitter.TryEmitAsCallSiteAttribute(Attrs); + if (CGM.getCodeGenOpts().CallGraphSection) { + // Create operand bundle only for indirect calls, not for all + if (callOrInvoke && *callOrInvoke && (*callOrInvoke)->isIndirectCall()) { ---------------- Prabhuk wrote:
`llvm::CallBase **callOrInvoke` is one of the function parameters. https://github.com/llvm/llvm-project/blob/ec5b729e651c48dfff67487e6bb24c218c35cda9/clang/lib/CodeGen/CGCall.cpp#L5080-L5086 https://github.com/llvm/llvm-project/pull/87573 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits