HomePhabricator

[OpenCL][PR42033] Fix addr space deduction with template parameters

Authored by Anastasia on Jul 18 2019, 2:12 AM.

Description

[OpenCL][PR42033] Fix addr space deduction with template parameters

If dependent types appear in pointers or references we allow addr
space deduction because the addr space in template argument will
belong to the pointee and not the pointer or reference itself.

We also don't diagnose addr space on a function return type after
template instantiation. If any addr space for the return type was
provided on a template parameter this will be diagnosed during the
parsing of template definition.

Differential Revision: https://reviews.llvm.org/D62584

llvm-svn: 366417

Details

Committed
AnastasiaJul 18 2019, 2:12 AM
Differential Revision
D62584: [OpenCL][PR42033] Deducing addr space with template parameter types
Parents
rGf26706fa1c15: Fixup r366333 (require x86 in test)
Branches
Unknown
Tags
Unknown