CloneFunction: Clone all attributes, including the CC
authorReid Kleckner <reid@kleckner.net>
Wed, 26 Mar 2014 22:26:35 +0000 (22:26 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 26 Mar 2014 22:26:35 +0000 (22:26 +0000)
commit891835ae0f801da0d25503c0a66a218bf4629c59
treec892af3676d6614addd89a33047cf2000d74b218
parent899a605fc19df8f6b80f2e5e55512d04aee10c5a
CloneFunction: Clone all attributes, including the CC

Summary:
Tested with a unit test because we don't appear to have any transforms
that use this other than ASan, I think.

Fixes PR17935.

Reviewers: nicholas

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D3194

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204866 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/CloneFunction.cpp
unittests/Transforms/Utils/Cloning.cpp