MergeFunctions: Don't replace a weak function use by another equivalent weak function
authorArnold Schwaighofer <aschwaighofer@apple.com>
Tue, 9 Jun 2015 18:19:17 +0000 (18:19 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Tue, 9 Jun 2015 18:19:17 +0000 (18:19 +0000)
commit92a42eead2ffd1c71a0a6486560b9773b9a582fb
tree1e734e14dfe28c9b1e5742e5bafa1c7cd17eeca7
parent6eee2375d961f9646f89d3e24c9e288b725469bd
MergeFunctions: Don't replace a weak function use by another equivalent weak function

We don't know whether the weak functions definition is the definitive definition.

rdar://21303727

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239422 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/MergeFunctions.cpp
test/Transforms/MergeFunc/fold-weak.ll