[llvm-branch-commits] [clang] callee_type metadata for indirect calls (PR #117036)

Paul Kirth via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Apr 22 10:00:06 PDT 2025


================
@@ -1622,6 +1622,9 @@ class CodeGenModule : public CodeGenTypeCache {
   void CreateFunctionTypeMetadataForIcall(const FunctionDecl *FD,
                                           llvm::Function *F);
 
+  /// Create and attach type metadata to the given call.
+  void CreateCalleeTypeMetadataForIcall(const QualType &QT, llvm::CallBase *CB);
----------------
ilovepi wrote:

```suggestion
  void createCalleeTypeMetadataForIcall(const QualType &QT, llvm::CallBase *CB);
```
The existing API should probably be renamed as well, but that should happen separately. 

https://github.com/llvm/llvm-project/pull/117036


More information about the llvm-branch-commits mailing list