[PR40778][Sema] Adjust addr space of operands in builtin operators.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Thu, 7 Mar 2019 16:43:41 +0000 (16:43 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Thu, 7 Mar 2019 16:43:41 +0000 (16:43 +0000)
commit27e5c212ee42bb3908d40d736b07762ae1fe98d0
treee0905846b69a37b3c77e97e13e024cfc63f8fb31
parent95817d364104f6aa754af7e7034540b5a62eb2c2
[PR40778][Sema] Adjust addr space of operands in builtin operators.

Adjust address space for references and pointer operands of builtin operators.

Currently this change only fixes addr space in assignment (= and |=) operator,
that is needed for the test case reported in the bug. Wider support for all
other operations will follow.

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

llvm-svn: 355608
clang/lib/Sema/SemaOverload.cpp
clang/test/CodeGenOpenCLCXX/addrspace-operators.cl [new file with mode: 0644]