commit | 26e095e84f0d0348fe27ef13f49fd09440c99a13 | [log] [tgz] |
---|---|---|
author | Anastasia Stulova <anastasia.stulova@arm.com> | Thu May 02 16:10:50 2019 +0000 |
committer | Anastasia Stulova <anastasia.stulova@arm.com> | Thu May 02 16:10:50 2019 +0000 |
tree | 17a70a037edea64e5ba32e0cbffab680772beb4b | |
parent | 2f6c579ecb79d125367d39c10d1dec899cb70650 [diff] |
[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