[all-commits] [llvm/llvm-project] e635fe: [OpenCL] Fix address space in binding of initializ...

Anastasia Stulova via All-commits all-commits at lists.llvm.org
Wed Feb 3 04:50:29 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e635feb15a91e6eeb77876031be2811e63d542f3
      https://github.com/llvm/llvm-project/commit/e635feb15a91e6eeb77876031be2811e63d542f3
  Author: Anastasia Stulova <anastasia.stulova at arm.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/CodeGenOpenCLCXX/addrspace-references.cl
    M clang/test/SemaOpenCLCXX/address-space-references.cl

  Log Message:
  -----------
  [OpenCL] Fix address space in binding of initializer lists to referencs

Prevent materializing temporaries in the address space of the references
they are bind to. The temporaries should always be in the same address
space - private for OpenCL.

Tags: #clang

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




More information about the All-commits mailing list