The memcpy intrinsic only takes i8* for %src and %dst, so cast them to that
commit680e1e0ae35b33a6581f1c8a3a951d0180daf6f8
authorNick Lewycky <nicholas@mxc.ca>
Mon, 31 May 2010 06:16:35 +0000 (31 06:16 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 31 May 2010 06:16:35 +0000 (31 06:16 +0000)
tree8fb25de71a61f4dfc9b455e1edcf93ec3c6d328c
parent7d2325fdbbbfe925bbaebfbcca6faae7619f3d02
The memcpy intrinsic only takes i8* for %src and %dst, so cast them to that
first. Fixes PR7265.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105206 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/BuildLibCalls.cpp
test/Transforms/SimplifyLibCalls/2010-05-30-memcpy-Struct.ll [new file with mode: 0644]