HomePhabricator

[OpenCL][PR41727] Prevent ICE on global dtors

Authored by Anastasia on Jul 15 2019, 4:58 AM.

Description

[OpenCL][PR41727] Prevent ICE on global dtors

Pass NULL to pointer arg of __cxa_atexit if addr space
is not matching with its param. This doesn't align yet
with how dtors are generated that should be changed too.

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

llvm-svn: 366059