diff options
author | Joey Gouly <joey.gouly@arm.com> | 2013-02-21 12:06:32 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@arm.com> | 2013-02-21 12:06:32 +0000 |
commit | b965d8baf95a3d0dc781e0cc1f80c0676580b277 (patch) | |
tree | 03d077feac79ae84209773cb57216a4b0b470b3e | |
parent | 52e933b0c3a1d552ab0e4d629ee15cff99a94447 (diff) |
Fix an OpenCL test case. Pointer arguments to kernels must be declared with the
__global, __constant or __local qualifier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175735 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenOpenCL/kernel-arg-info.cl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenOpenCL/kernel-arg-info.cl b/test/CodeGenOpenCL/kernel-arg-info.cl index 9d52736a76..7e35a33564 100644 --- a/test/CodeGenOpenCL/kernel-arg-info.cl +++ b/test/CodeGenOpenCL/kernel-arg-info.cl @@ -1,6 +1,6 @@ // RUN: %clang_cc1 %s -cl-kernel-arg-info -emit-llvm -o - | FileCheck %s -kernel void foo(int *X, int Y, int anotherArg) { +kernel void foo(global int *X, int Y, int anotherArg) { *X = Y + anotherArg; } |