[PATCH] Error on illegal OpenCL kernel argument types

Matt Arsenault Matthew.Arsenault at amd.com
Wed Jun 26 18:47:55 PDT 2013


Hi rsmith,

OpenCL disallows various types (bool, size_t, pointers, or structs containing them) to be used for kernel arguments, but currently they are accepted. The error message in the struct case is currently a bit awkward since it doesn't describe which struct member is at fault for not allowing the kernel argument.

http://llvm-reviews.chandlerc.com/D1052

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/Sema.h
  lib/Sema/SemaDecl.cpp
  test/SemaOpenCL/invalid-kernel-arguments.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1052.1.patch
Type: text/x-patch
Size: 8937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130626/ef0fb508/attachment.bin>


More information about the cfe-commits mailing list