]> granicus.if.org Git - clang/commit
fix the clang side of PR7437: EmitAggregateCopy
authorChris Lattner <sabre@nondot.org>
Thu, 8 Jul 2010 00:07:45 +0000 (00:07 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Jul 2010 00:07:45 +0000 (00:07 +0000)
commit098432c3119cd4e421a2b906d06187b004d3a86b
tree3f7356b728f1feee19762a1dbdf736b818d71d03
parent30432fee29060d3a6c8d1ec4a785b718b7d6e4d1
fix the clang side of PR7437: EmitAggregateCopy
was not producing a memcpy with the right address
spaces because of two places in it doing casts of
the arguments to i8, one of which that didn't
preserve the address space.

There is also an optimizer bug here.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107842 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprAgg.cpp
test/CodeGen/address-space.c