Skip to content

Commit

Permalink
[test] Fix const-str-array-decay.cl failure on PowerPC
Browse files Browse the repository at this point in the history
D150520 converted the test to use opaque pointers. The update version
fails on PowerPC because of different return type of the function.
This patch resolves the failure by removing the return type check;
it also makes the test look more like it was before the conversion to
prevent other potential issues caused by ABI differences across targets.
  • Loading branch information
s-barannikov committed May 15, 2023
1 parent 80cf56e commit cc7dc90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/test/CodeGenOpenCL/const-str-array-decay.cl
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ kernel void str_array_decy() {
test_func("Test string literal");
}

// CHECK: call i32 @test_func(ptr addrspace(2) noundef @{{.*}})
// CHECK: ptr addrspace(2) noundef
// CHECK-NOT: addrspacecast

0 comments on commit cc7dc90

Please sign in to comment.