[OpenCL] Fix missing addrspace on implicit move assignment operator
authorOle Strohm <olemarius.strohm@arm.com>
Mon, 7 Jun 2021 08:34:53 +0000 (09:34 +0100)
committerOle Strohm <olemarius.strohm@arm.com>
Mon, 7 Jun 2021 08:37:53 +0000 (09:37 +0100)
commit438cf5577e720f84d493a272c5a1cbaf6ce19e51
treea68e3d2b8257b6ada95d72835242de145b986bfe
parentf5f329a37175c3a30e9d8b20b95fced96b9dde8c
[OpenCL] Fix missing addrspace on implicit move assignment operator

This fixes the missing address space on `this` in the implicit move
assignment operator.
The function called here is an abstraction around the lines that have
been removed which also sets the address space correctly.
This is copied from CopyConstructor, CopyAssignment and MoveConstructor,
all of which use this function, and now MoveAssignment does too.

Fixes: PR50259

Reviewed By: svenvh

Differential Revision: https://reviews.llvm.org/D103252
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/AST/ast-dump-implicit-members.clcpp [new file with mode: 0644]