In my recent change to avoid use of underaligned memory I didn't notice that
authorDuncan Sands <baldrick@free.fr>
Thu, 4 Oct 2012 13:53:21 +0000 (13:53 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 4 Oct 2012 13:53:21 +0000 (13:53 +0000)
commit7508f946bc4b5022cc4612c8c7492f2e23043976
treecd85fa0a48cf3d8c309f93f60bbbde9b9cccaf2b
parentffcf6dffee69bd586ab8aa3e24ebbca1d5d279e7
In my recent change to avoid use of underaligned memory I didn't notice that
cpyDest can be mutated in some cases, which would then cause a crash later if
indeed the memory was underaligned.  This brought down several buildbots, so
I guess the underaligned case is much more common than I thought!

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