================
@@ -0,0 +1,35 @@
+// RUN: %clang_cc1 -fexperimental-call-graph-section -disable-llvm-passes
-emit-llvm -o - %s | FileCheck %s
+
+// Check that we do not generate callee_type metadata for indirect calls
+// to functions with internal linkage (e.g., types in anonymous namespaces),
+// as their type metadata identifiers are distinct MDNodes instead of
+// generalized strings, which would fail the LLVM Verifier.
+
+namespace {
+class a;
+class b {
+public:
+ virtual void c(a);
+};
+class a {
+public:
+ b &e;
+ void d() { e.c(*this); }
+};
+
----------------
ilovepi wrote:
```suggestion
void b::c(a) {}
```
This gets rid of some warnings for me.
https://github.com/llvm/llvm-project/pull/186272
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits