The memcpy intrinsic only takes i8* for %src and %dst, so cast them to that
authorNick Lewycky <nicholas@mxc.ca>
Mon, 31 May 2010 06:16:35 +0000 (06:16 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 31 May 2010 06:16:35 +0000 (06:16 +0000)
commita9d6680cb1db34f6eedf7f5f1875da1dd47ba8ca
tree8fb25de71a61f4dfc9b455e1edcf93ec3c6d328c
parent10e02a017a877b750d4cdf0ebf11b90dee5e0d61
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]