]> granicus.if.org Git - clang/commit
[Sema] Adjust addr space of reference operand in compound assignment
authorAnastasia Stulova <anastasia.stulova@arm.com>
Tue, 19 Mar 2019 16:50:21 +0000 (16:50 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Tue, 19 Mar 2019 16:50:21 +0000 (16:50 +0000)
commit32be13ac51be3fffbc4a5888a989c2073e002885
tree68753ba7ed47713d222f6ad765a7c23568a9522b
parenteaba54eacac4dc55ecd5a5bd8b32d3cc679542e6
[Sema] Adjust addr space of reference operand in compound assignment

When we create overloads for the builtin compound assignment operators
we need to preserve address space for the reference operand taking it
from the argument that is passed in.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356475 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/CodeGenOpenCLCXX/addrspace-operators.cl