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 | 7629b71dd4cee9d1a3a69b092b318674532b22ba (patch) | |
tree | 2b1a27e3901928ee7df4a8269604ab368265ee9c /llvm/lib/Linker/LinkModules.cpp | |
parent | cad92f24477606e61c060ee318a8930f058a011d (diff) | |
download | bcm5719-llvm-7629b71dd4cee9d1a3a69b092b318674532b22ba.tar.gz bcm5719-llvm-7629b71dd4cee9d1a3a69b092b318674532b22ba.zip |
Revert r49614. As Dan pointed out, some of these aren't correct.
llvm-svn: 49657
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 7aa169c4c46..a82b266bbdb 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/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; |