[PATCH] D37804: [OpenCL] Handle address space conversion while setting type alignment
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 13 13:59:31 PDT 2017
yaxunl added inline comments.
================
Comment at: lib/CodeGen/CGExpr.cpp:957
- return Builder.CreateBitCast(Addr, ConvertType(E->getType()));
+ return Builder.CreatePointerBitCastOrAddrSpaceCast(
+ Addr, ConvertType(E->getType()));
----------------
Better assert that only CK_AddressSpaceConversion allows different addr spaces in target type.
https://reviews.llvm.org/D37804
More information about the cfe-commits
mailing list