[all-commits] [llvm/llvm-project] 438cf5: [OpenCL] Fix missing addrspace on implicit move as...

Ole Strøhm via All-commits all-commits at lists.llvm.org
Mon Jun 7 02:04:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 438cf5577e720f84d493a272c5a1cbaf6ce19e51
      https://github.com/llvm/llvm-project/commit/438cf5577e720f84d493a272c5a1cbaf6ce19e51
  Author: Ole Strohm <olemarius.strohm at arm.com>
  Date:   2021-06-07 (Mon, 07 Jun 2021)

  Changed paths:
    M clang/lib/Sema/SemaDeclCXX.cpp
    A clang/test/AST/ast-dump-implicit-members.clcpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list