diff options
author | Owen Anderson <resistor@mac.com> | 2008-04-14 17:38:21 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-04-14 17:38:21 +0000 |
commit | ab567f8b58e0777a70a64351e2330f40900888f2 (patch) | |
tree | d2d4e62a2ddb8b054f15f0104d6defaca8e3019a /lib/Linker | |
parent | 78dda99fdb44b376c644d836eda4cfae2115fb24 (diff) | |
download | external_llvm-ab567f8b58e0777a70a64351e2330f40900888f2.zip external_llvm-ab567f8b58e0777a70a64351e2330f40900888f2.tar.gz external_llvm-ab567f8b58e0777a70a64351e2330f40900888f2.tar.bz2 |
Revert r49614. As Dan pointed out, some of these aren't correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 7aa169c..a82b266 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -930,7 +930,7 @@ static bool LinkFunctionBody(Function *Dest, Function *Src, Function::arg_iterator DI = Dest->arg_begin(); for (Function::arg_iterator I = Src->arg_begin(), E = Src->arg_end(); I != E; ++I, ++DI) { - DI->takeName(I); // Copy the name information over... + DI->setName(I->getName()); // Copy the name information over... // Add a mapping to our local map ValueMap[I] = DI; |