Let the strcat optimizer return the pointer to the start of the buffer,
authorEd Schouten <ed@80386.nl>
Mon, 6 Apr 2009 13:06:48 +0000 (13:06 +0000)
committerEd Schouten <ed@80386.nl>
Mon, 6 Apr 2009 13:06:48 +0000 (13:06 +0000)
commitb5e0a96a8d05b29b14ec90ba3dca0c2bd015c534
treef3f1b594b7be486b140c8c5ed8d7fd663d5a0ea3
parentcae1b628a791f77fb6a1fd326fbf2230ddc27825
Let the strcat optimizer return the pointer to the start of the buffer,
instead of the place where it started to perform the string copy.

- PR3661
- Patch by Benjamin Kramer!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68443 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/StrCat.ll