]> granicus.if.org Git - clang/commit
[OpenCL][PR41727] Prevent ICE on global dtors
authorAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 15 Jul 2019 11:58:10 +0000 (11:58 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 15 Jul 2019 11:58:10 +0000 (11:58 +0000)
commit5e43603aaadb61bd4e3da1267730a3df597127a6
tree8229f1e4645f500e6e905bf043476a2330c33c67
parenta9bc6dd02c0309a30caf6d8c0ab4565e072d688a
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366059 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/ItaniumCXXABI.cpp
lib/CodeGen/TargetInfo.h
test/CodeGenOpenCLCXX/atexit.cl [new file with mode: 0644]