Fix a typeo
authorChris Lattner <sabre@nondot.org>
Wed, 4 Aug 2004 22:29:05 +0000 (22:29 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Aug 2004 22:29:05 +0000 (22:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15510 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp
lib/VMCore/Linker.cpp

index d10b2ccd9b34a10a2ae926bca14f78e90ef0536f..cfb67a06818799ac1a59c7f470798c35676ddf2a 100644 (file)
@@ -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));
index d10b2ccd9b34a10a2ae926bca14f78e90ef0536f..cfb67a06818799ac1a59c7f470798c35676ddf2a 100644 (file)
@@ -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));