From 82b5b219dd3b9035442389ddcd58e6f859aae039 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 4 Aug 2004 22:29:05 +0000 Subject: [PATCH] Fix a typeo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15510 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkModules.cpp | 2 +- lib/VMCore/Linker.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index d10b2ccd9b3..cfb67a06818 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.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)); diff --git a/lib/VMCore/Linker.cpp b/lib/VMCore/Linker.cpp index d10b2ccd9b3..cfb67a06818 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));