[clang] [clang][FMV] Fix crash with cpu_specific attribute. (PR #115762)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 15 07:48:12 PST 2024


================
@@ -114,8 +114,8 @@ void ThreeVersionsSameAttr(void){}
 // CHECK: define {{.*}}void @ThreeVersionsSameAttr.Z() #[[K]]
 
 ATTR(cpu_specific(knl))
-void CpuSpecificNoDispatch(void) {}
-// CHECK: define {{.*}}void @CpuSpecificNoDispatch.Z() #[[K:[0-9]+]]
+void CpuSpecificNoDispatch(void (*f)(void)) {}
+// CHECK: define {{.*}}void @CpuSpecificNoDispatch.Z(ptr noundef %f) #[[K:[0-9]+]]
----------------
erichkeane wrote:

Why the change in the signatures here?  We should leave the old version of the test around, but if you want a pointer argument test, just add it.

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


More information about the cfe-commits mailing list