OSDN Git Service

Don't forget that strcpy and friends return a pointer to the destination, so
authorNick Lewycky <nicholas@mxc.ca>
Tue, 25 Sep 2012 01:55:59 +0000 (01:55 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 25 Sep 2012 01:55:59 +0000 (01:55 +0000)
commit24ab21c691fb98040318b9521cd1247c3e0b79cc
tree562d5355ffcdb7e1eba9d3423c60d5be34c44e90
parente5510db57c86a618cbf9c7513e03f34e7e40a1fd
Don't forget that strcpy and friends return a pointer to the destination, so
it's not a dead store if that pointer is used. Whoops!

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