fix a bozo bug I introduced in r119930, causing a miscompile of
authorChris Lattner <sabre@nondot.org>
Wed, 1 Dec 2010 01:24:55 +0000 (01:24 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 1 Dec 2010 01:24:55 +0000 (01:24 +0000)
commitb5a3196f809e8edb2e9fef09de1de3d382cb852f
treea21ccee8f5ab344189679d1574d631c74e8efcc4
parent76f4e1038878e1944bb3e32e8183ce8b973bc61b
fix a bozo bug I introduced in r119930, causing a miscompile of
20040709-1.c from the gcc testsuite.  I was using the size of a
pointer instead of the pointee.  This fixes rdar://8713376

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120519 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/MemCpyOptimizer.cpp
test/Transforms/MemCpyOpt/memcpy.ll