llvm-project/clang/test/CodeGenOpenCLCXX
Anastasia Stulova 26e095e84f [OpenCL] Fix initialisation of this via pointer.
When the expression used to initialise 'this' has a pointer type,
check the address space of the pointee type instead of the pointer
type to decide whether an address space cast is required.
It is the pointee type that carries the address space qualifier.

Fixing PR41674.

Patch by kpet (Kevin Petit)!

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

llvm-svn: 359798
2019-05-02 16:10:50 +00:00
..
address-space-castoperators.cpp [Sema] Change addr space diagnostics in casts to follow C++ style. 2019-03-07 17:06:30 +00:00
address-space-deduction.cl
address-space-deduction2.cl [OpenCL] Fix for TBAA information of pointer after addresspacecast 2018-12-12 09:51:23 +00:00
addrspace-derived-base.cl [PR40778] Preserve addr space in Derived to Base cast. 2019-03-07 16:23:15 +00:00
addrspace-of-this.cl [OpenCL] Fix initialisation of this via pointer. 2019-05-02 16:10:50 +00:00
addrspace-operators.cl [Sema] Adjust addr space of reference operand in compound assignment 2019-03-19 16:50:21 +00:00
addrspace-references.cl [PR40778] Add addr space conversion when binding reference to a temporary. 2019-03-06 13:02:41 +00:00
local_addrspace_init.cl [PR41157][OpenCL] Prevent implicit init of local addr space var in C++ mode. 2019-04-04 11:08:51 +00:00
method-overload-address-space.cl [OpenCL] Allow address spaces as method qualifiers. 2019-01-21 16:01:38 +00:00
template-address-spaces.cl [OpenCL] Add generic AS to 'this' pointer 2018-12-13 10:15:27 +00:00