[all-commits] [llvm/llvm-project] 800800: [OpenCL] Initialize temporaries in the private add...

Ole Strøhm via All-commits all-commits at lists.llvm.org
Mon Sep 13 04:56:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8008009fd25bf51c2c85c612bfefec64e975bbe4
      https://github.com/llvm/llvm-project/commit/8008009fd25bf51c2c85c612bfefec64e975bbe4
  Author: Ole Strohm <olemarius.strohm at arm.com>
  Date:   2021-09-13 (Mon, 13 Sep 2021)

  Changed paths:
    M clang/include/clang/Sema/Initialization.h
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/SemaOpenCLCXX/addrspace-constructors.clcpp
    A clang/test/SemaOpenCLCXX/temporaries.clcpp

  Log Message:
  -----------
  [OpenCL] Initialize temporaries in the private address space

This patch fixes initializing temporaries, which are currently initialized
without an address space, meaning that no constructor can ever be applicable.
Now they will be constructed in the private addrspace.

Fixes the second issue in PR43296.

Reviewed By: Anastasia

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




More information about the All-commits mailing list