HomePhabricator

[PR41157][OpenCL] Prevent implicit init of local addr space var in C++ mode.

Authored by Anastasia on Apr 4 2019, 4:08 AM.

Description

[PR41157][OpenCL] Prevent implicit init of local addr space var in C++ mode.

Prevent adding initializers implicitly to variables declared in
local address space. This happens when they get converted into
global variables and therefore theoretically have to be default
initialized in C++.

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

llvm-svn: 357684