[llvm-branch-commits] [llvm-branch] r134507 - /llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp

Chris Lattner sabre at nondot.org
Wed Jul 6 10:47:53 PDT 2011


Author: lattner
Date: Wed Jul  6 12:47:53 2011
New Revision: 134507

URL: http://llvm.org/viewvc/llvm-project?rev=134507&view=rev
Log:
fix Linker/2005-12-06-AppendingZeroLengthArrays.ll, CopyGVAttributes now handles
the name transfer.

Modified:
    llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp

Modified: llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp?rev=134507&r1=134506&r2=134507&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp (original)
+++ llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp Wed Jul  6 12:47:53 2011
@@ -523,8 +523,6 @@
   uint64_t NewSize = DstTy->getNumElements() + SrcTy->getNumElements();
   ArrayType *NewType = ArrayType::get(EltTy, NewSize);
   
-  DstGV->setName("");
-  
   // Create the new global variable.
   GlobalVariable *NG =
     new GlobalVariable(*DstGV->getParent(), NewType, SrcGV->isConstant(),





More information about the llvm-branch-commits mailing list