diff options
author | Hans Wennborg <hans@hanshq.net> | 2019-08-14 12:53:30 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2019-08-14 12:53:30 +0000 |
commit | 58f7938ba52bb7ed982a3846ab3a7c467d56537e (patch) | |
tree | eb36bd90dafd846893da52a8a3d68c6efbecbbeb /lib/Headers/opencl-c-base.h | |
parent | 63e5b5db918f0594491f854fd74b41c813030175 (diff) |
Merging r368561:
------------------------------------------------------------------------
r368561 | svenvh | 2019-08-12 14:44:26 +0200 (Mon, 12 Aug 2019) | 9 lines
[OpenCL] Ignore parentheses for sampler initialization
The sampler handling logic in SemaInit.cpp would inadvertently treat
parentheses around sampler arguments as an implicit cast, leading to
an unreachable "can't implicitly cast lvalue to rvalue with
this cast kind". Fix by ignoring parentheses once we are in the
sampler initializer case.
Differential Revision: https://reviews.llvm.org/D66080
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_90@368843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers/opencl-c-base.h')
0 files changed, 0 insertions, 0 deletions