[clang] [FMV] Emit the resolver along with the default version definition. (PR #84405)

Jon Roelofs via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 8 10:23:28 PST 2024


================
@@ -85,7 +85,21 @@ int hoo(void) {
 }
 
 
+// This should generate one target version but no resolver.
+__attribute__((target_version("default"))) int unused_with_forward_default_decl(void);
+__attribute__((target_version("mops"))) int unused_with_forward_default_decl(void) { return 0; }
 
+// FIXME: If the default declaration follows the non-default definition,
----------------
jroelofs wrote:

Ouch. Yeah, I think we should consider that a bug.

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


More information about the cfe-commits mailing list