[Cloning] Teach CloneModule about personality functions
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 30 Jun 2015 22:14:01 +0000 (22:14 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 30 Jun 2015 22:14:01 +0000 (22:14 +0000)
commit5ca5b0d9f4a5c2900e3fe276f349f65a9bc8e38b
tree10dbadf78c5e1cbdef02b83ce50ac3a9802f904e
parent10a3a33df0ba3db9aee772ff151f7a76ab7be898
[Cloning] Teach CloneModule about personality functions

CloneModule didn't take into account that it needed to remap the value
using values in the module.

This fixes PR23992.

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