[llvm-branch-commits] [clang] callee_type metadata for indirect calls (PR #117036)
Prabhu Rajasekaran via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Apr 22 20:56:26 PDT 2025
================
@@ -2873,14 +2890,33 @@ void CodeGenModule::CreateFunctionTypeMetadataForIcall(const FunctionDecl *FD,
llvm::Metadata *MD = CreateMetadataIdentifierForType(FD->getType());
F->addTypeMetadata(0, MD);
- F->addTypeMetadata(0, CreateMetadataIdentifierGeneralized(FD->getType()));
+ // Add the generalized identifier if not added already.
+ if (!HasExistingGeneralizedTypeMD(F))
----------------
Prabhuk wrote:
This was my previous implementation. I noticed that the CreateFunctionTypeMetadataForIcall was called twice and changed the implementation.
https://github.com/llvm/llvm-project/pull/117036
More information about the llvm-branch-commits
mailing list