[PATCH] D40806: CodeGen: Fix invalid bitcasts for memcpy

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 4 14:31:12 PST 2017


yaxunl created this revision.
Herald added a subscriber: nhaehnle.

CreateCoercedLoad/CreateCoercedStore assumes pointer argument of
memcpy is in addr space 0, which is not correct and causes invalid
bitcasts for triple amdgcn---amdgiz.

It is fixed by using alloca addr space instead.


https://reviews.llvm.org/D40806

Files:
  lib/CodeGen/CGCall.cpp
  test/CodeGenOpenCL/amdgpu-abi-struct-coerce.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40806.125417.patch
Type: text/x-patch
Size: 12859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171204/87fb1e45/attachment-0001.bin>


More information about the cfe-commits mailing list