]> granicus.if.org Git - clang/commit
[OpenCL] Define CLK_NULL_EVENT without cast
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 19 Jul 2019 09:11:48 +0000 (09:11 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 19 Jul 2019 09:11:48 +0000 (09:11 +0000)
commit89f0031320593ecd5a1ccd2b2bacf83de981b4d8
tree4de44ead013217e4ed1a6c94458b58e422a6fab0
parentb8bf8b22ff2179614588936299d0330997224fc8
[OpenCL] Define CLK_NULL_EVENT without cast

Defining CLK_NULL_EVENT with a `(void*)` cast has the (unintended?)
side-effect that the address space will be fixed (as generic in OpenCL
2.0 mode).  The consequence is that any target specific address space
for the clk_event_t type will not be applied.

It is not clear why the void pointer cast was needed in the first
place, and it seems we can do without it.

Differential Revision: https://reviews.llvm.org/D63876

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366546 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/opencl-c-base.h
test/SemaOpenCL/clk_event_t.cl