[PATCH] D64791: [OpenCL] Fix sampler initialization for C++ mode

Neil Hickey via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 16 04:30:32 PDT 2019


neil.hickey created this revision.
neil.hickey added a reviewer: Anastasia.
Herald added a subscriber: yaxunl.

Sampler initialization from integer literal was broken in C++ mode for OpenCL. Fixing to allow functions that take a sampler to take an integer and for samplers to be initialized to integer values.


https://reviews.llvm.org/D64791

Files:
  lib/Sema/SemaInit.cpp
  lib/Sema/SemaOverload.cpp
  test/CodeGenOpenCL/sampler.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64791.210061.patch
Type: text/x-patch
Size: 5589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190716/ca632225/attachment.bin>


More information about the cfe-commits mailing list