[PATCH] D54858: [OpenCL] Improve diagnostics for address spaces in template instantiation
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 23 06:07:55 PST 2018
Anastasia created this revision.
Anastasia added reviewers: rjmccall, yaxunl.
When template instantiation leads to creation of invalid code patterns with address spaces compiler crashes with ICE.
This patch fixes the template instantiation to provide correct diagnostics instead.
https://reviews.llvm.org/D54858
Files:
lib/Sema/SemaDecl.cpp
lib/Sema/TreeTransform.h
test/SemaOpenCLCXX/address-space-templates.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54858.175118.patch
Type: text/x-patch
Size: 4420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181123/cc95ce1c/attachment.bin>
More information about the cfe-commits
mailing list