aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
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
commit82b5b219dd3b9035442389ddcd58e6f859aae039 (patch)
tree2bad609e81d79e3c3b532fffada78cbd10378871 /lib/VMCore
parentd2da229ce3720f594539113bd3617cb57fd8df66 (diff)
downloadexternal_llvm-82b5b219dd3b9035442389ddcd58e6f859aae039.zip
external_llvm-82b5b219dd3b9035442389ddcd58e6f859aae039.tar.gz
external_llvm-82b5b219dd3b9035442389ddcd58e6f859aae039.tar.bz2
Fix a typeo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Linker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Linker.cpp b/lib/VMCore/Linker.cpp
index d10b2cc..cfb67a0 100644
--- a/lib/VMCore/Linker.cpp
+++ b/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));