Skip to content

Commit 71d1538

Browse files
Fix for CodeGenSYCL/functionptr-addrspace.cpp lit test
After optimization, the function is completely empty. Therefore it is "nocapture". ptr type arguments should be "noundef" (probably all args in C/C++ should be noundef). Both "nocapture" and "noundef" are correct.
1 parent b89ba99 commit 71d1538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CodeGenSYCL/functionptr-addrspace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ __attribute__((sycl_kernel)) void kernel_single_task(const Func &kernelFunc) {
77
kernelFunc();
88
}
99

10-
// CHECK: define dso_local spir_func{{.*}}invoke_function{{.*}}(i32 ()* nocapture %fptr, i32 addrspace(4)* nocapture %ptr)
10+
// CHECK: define dso_local spir_func{{.*}}invoke_function{{.*}}(i32 ()* nocapture noundef %fptr, i32 addrspace(4)* nocapture noundef %ptr)
1111
void invoke_function(int (*fptr)(), int *ptr) {}
1212

1313
int f() { return 0; }

0 commit comments

Comments
 (0)