[PATCH] D53780: Fix bitcast to address space cast for coerced load/stores
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 3 12:00:43 PDT 2018
rjmccall added inline comments.
================
Comment at: lib/CodeGen/CGCall.cpp:1257
+ Address Casted = CGF.Builder.CreateBitCast(Tmp, CGF.Int8Ty->getPointerTo(Tmp.getAddressSpace()));
+ Address SrcCasted = CGF.Builder.CreateBitCast(Src, CGF.Int8Ty->getPointerTo(Src.getAddressSpace()));
CGF.Builder.CreateMemCpy(Casted, SrcCasted,
----------------
`CGBuilder` provides a convenient `CreateElementBitCast` function for this.
https://reviews.llvm.org/D53780
More information about the cfe-commits
mailing list