aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-04 22:29:05 +0000
committerChris Lattner <sabre@nondot.org>2004-08-04 22:29:05 +0000
commit6722f851efea8d60a6d1db96aa07e2fe67dc25ed (patch)
tree90b45b883fa0d212f03a157360dadbd3834a1278
parent20a4dab308c36c5cbdfe87ab36f4926fc726bf34 (diff)
downloadllvm-6722f851efea8d60a6d1db96aa07e2fe67dc25ed.zip
llvm-6722f851efea8d60a6d1db96aa07e2fe67dc25ed.tar.gz
llvm-6722f851efea8d60a6d1db96aa07e2fe67dc25ed.tar.bz2
Fix a typeo
llvm-svn: 15510
-rw-r--r--llvm/lib/VMCore/Linker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Linker.cpp b/llvm/lib/VMCore/Linker.cpp
index d10b2cc..cfb67a0 100644
--- a/llvm/lib/VMCore/Linker.cpp
+++ b/llvm/lib/VMCore/Linker.cpp
@@ -605,7 +605,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
// visible symbol, DF must be an existing function with internal linkage.
// Rename it.
if (NewDF->getName() != SF->getName() && !NewDF->hasInternalLinkage())
- ForceRenaming(DF, SF->getName());
+ ForceRenaming(NewDF, SF->getName());
// ... and remember this mapping...
ValueMap.insert(std::make_pair(SF, NewDF));