[OpenCL] Fixed missing address space for templated copy constructor.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 27 Jul 2020 12:27:21 +0000 (13:27 +0100)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 27 Jul 2020 14:18:49 +0000 (15:18 +0100)
commit92fa91bb402921a5705507c38f583e9b8e9d84e4
tree61b6db62b5aed7b378788166e73dc13210cde7b1
parent1b4d24912a1f8730475d4b01e7da89dfae90ae9c
[OpenCL] Fixed missing address space for templated copy constructor.

Added missing address space for the parameter of copy ctor created
for templated constructor with an R-value reference.

Patch by Ole Strohm (olestrohm)!

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83665
clang/lib/Sema/SemaTemplateDeduction.cpp
clang/test/SemaOpenCLCXX/address-space-templates.cl