r175735 - Fix an OpenCL test case. Pointer arguments to kernels must be declared with the

Joey Gouly joey.gouly at arm.com
Thu Feb 21 04:06:32 PST 2013


Author: joey
Date: Thu Feb 21 06:06:32 2013
New Revision: 175735

URL: http://llvm.org/viewvc/llvm-project?rev=175735&view=rev
Log:
Fix an OpenCL test case. Pointer arguments to kernels must be declared with the
__global, __constant or __local qualifier.

Modified:
    cfe/trunk/test/CodeGenOpenCL/kernel-arg-info.cl

Modified: cfe/trunk/test/CodeGenOpenCL/kernel-arg-info.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenOpenCL/kernel-arg-info.cl?rev=175735&r1=175734&r2=175735&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenOpenCL/kernel-arg-info.cl (original)
+++ cfe/trunk/test/CodeGenOpenCL/kernel-arg-info.cl Thu Feb 21 06:06:32 2013
@@ -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;
 }
 





More information about the cfe-commits mailing list