[OpenCL] Fix invalid address space generation for clk_event_t
authorAlexey Sotkin <alexey.sotkin@intel.com>
Wed, 14 Nov 2018 09:40:05 +0000 (09:40 +0000)
committerAlexey Sotkin <alexey.sotkin@intel.com>
Wed, 14 Nov 2018 09:40:05 +0000 (09:40 +0000)
commit692f12b389d70d921d578fd6aba5eeb451e4b6ec
tree78187b4cf6a2579f3fe0046fc9841756f02a0dad
parent91829eef650fdad7b2d566bf3f0cb623fd4bad09
[OpenCL] Fix invalid address space generation for clk_event_t

Summary:
Addrspace(32) was generated when putting 0 in clk_event_t * event_ret
parameter for enqueue_kernel function.

Patch by Viktoria Maksimova

Reviewers: Anastasia, yaxunl, AlexeySotkin

Reviewed By:  Anastasia, AlexeySotkin

Subscribers: cfe-commits

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

llvm-svn: 346838
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl