diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-13 17:18:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-13 17:18:26 +0000 |
commit | 890651a61b11f3ab422d9cdc7925765f55199336 (patch) | |
tree | 1ea028ea1a9d2707482c2853ba6b288fb655109b /lib | |
parent | aa4ea5a28ec2b078d9352b86f5e432a226dd8ea1 (diff) | |
download | external_llvm-890651a61b11f3ab422d9cdc7925765f55199336.zip external_llvm-890651a61b11f3ab422d9cdc7925765f55199336.tar.gz external_llvm-890651a61b11f3ab422d9cdc7925765f55199336.tar.bz2 |
remove some dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/IPO/ConstantMerge.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/ConstantMerge.cpp b/lib/Transforms/IPO/ConstantMerge.cpp index 7c71065..401a36e 100644 --- a/lib/Transforms/IPO/ConstantMerge.cpp +++ b/lib/Transforms/IPO/ConstantMerge.cpp @@ -87,10 +87,6 @@ bool ConstantMerge::runOnModule(Module &M) { } else if (GV->hasInternalLinkage()) { // Yup, this is a duplicate! // Make all uses of the duplicate constant use the canonical version. Replacements.push_back(std::make_pair(GV, Slot)); - } else if (GV->hasInternalLinkage()) { - // Make all uses of the duplicate constant use the canonical version. - Replacements.push_back(std::make_pair(Slot, GV)); - Slot = GV; } } } |