[PATCH] D29038: [OpenCL] Accept logical NOT for pointer types in CL1.0 and CL1.1
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 23 09:49:45 PST 2017
Anastasia created this revision.
Herald added a subscriber: yaxunl.
A bug is reported regarding incorrect error given for logical NOT operation with a pointer type:
https://llvm.org/bugs/show_bug.cgi?id=30217
Detailed investigation shows that this has only been a problem for CL earlier than v1.2.
This patch fixes the issue as well as improves and simplifies related test.
https://reviews.llvm.org/D29038
Files:
lib/Sema/SemaExpr.cpp
test/SemaOpenCL/invalid-logical-ops-1.1.cl
test/SemaOpenCL/invalid-logical-ops-1.2.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29038.85416.patch
Type: text/x-patch
Size: 6285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170123/ba01c4b8/attachment.bin>
More information about the cfe-commits
mailing list