[PATCH] D55127: [OpenCL] Diagnose conflicting address spaces between template definition and its instantiation
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 30 08:16:55 PST 2018
Anastasia created this revision.
Anastasia added a reviewer: rjmccall.
Herald added a subscriber: yaxunl.
Added new diagnostics when templates are instantiated with different address space from the one provided in definition.
This also prevents deducing generic address space in pointer type of templates to allow giving them concrete address space.
https://reviews.llvm.org/D55127
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaType.cpp
lib/Sema/TreeTransform.h
test/SemaOpenCLCXX/address-space-templates.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55127.176129.patch
Type: text/x-patch
Size: 5779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181130/3505b5b9/attachment.bin>
More information about the cfe-commits
mailing list