[PATCH] D62413: [OpenCL][PR41727] Prevent ICE on global dtors
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 28 12:23:27 PDT 2019
rjmccall added inline comments.
================
Comment at: lib/CodeGen/CGDeclCXX.cpp:132
+ Argument = CGM.getTargetCodeGenInfo().performAddrSpaceCast(
+ CGM, Addr.getPointer(), SrcAS, LangAS::opencl_global, DestTy);
----------------
Should this code be conditional to OpenCL? And why does `_cxa_atexit` take a `__global` pointer instead of, say, a `__generic` one?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62413/new/
https://reviews.llvm.org/D62413
More information about the cfe-commits
mailing list