[clang] [clang][FMV] Fix crash with cpu_specific attribute. (PR #115762)
Alexandros Lamprineas via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 15 08:28:40 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]+]]
----------------
labrinea wrote:
The change is to trigger the crash. I am not sure why we are not crashing without an argument. I can add a new test then and keep this too.
https://github.com/llvm/llvm-project/pull/115762
More information about the cfe-commits
mailing list