[llvm] [CFI][annotation] Leave alone function pointers in function annotations (PR #80173)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 01:21:53 PST 2024


================
@@ -531,6 +534,10 @@ class LowerTypeTestsModule {
   /// replace each use, which is a direct function call.
   void replaceDirectCalls(Value *Old, Value *New);
 
+  bool isFunctionAnnotation(Value *V) {
+    return FunctionAnnotations.count(V) != 0;
----------------
nikic wrote:

```suggestion
    return FunctionAnnotations.contains(V);
```

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


More information about the llvm-commits mailing list