]> granicus.if.org Git - clang/commit
Fix bitcast to address space cast for coerced load/stores
authorYaxun Liu <Yaxun.Liu@amd.com>
Thu, 8 Nov 2018 16:55:46 +0000 (16:55 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Thu, 8 Nov 2018 16:55:46 +0000 (16:55 +0000)
commitcc1c5250d219a58044567aff7f298100b53ee5a0
treeb498131321b81bd790c64278b940d1714b4bd8c1
parent837a4f70d294fda34ee47a3ca43a912ea1dff840
Fix bitcast to address space cast for coerced load/stores

Coerced load/stores through memory do not take into account potential
address space differences when it creates its bitcasts.

Patch by David Salinas.

Differential Revision: https://reviews.llvm.org/D53780

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346413 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
test/CodeGenCXX/address-space-cast-coerce.cpp [new file with mode: 0644]