forked from OSchip/llvm-project
Fix test/Regression/Linker/2005-12-06-AppendingZeroLengthArrays.ll and
PR662. Thanks to Markus for providing me with a ton of files to reproduce the problem! llvm-svn: 24619
This commit is contained in:
parent
98dcd12c28
commit
d490d4f023
|
@ -748,6 +748,8 @@ static bool LinkAppendingVars(Module *M,
|
|||
unsigned NewSize = T1->getNumElements() + T2->getNumElements();
|
||||
ArrayType *NewType = ArrayType::get(T1->getElementType(), NewSize);
|
||||
|
||||
G1->setName(""); // Clear G1's name in case of a conflict!
|
||||
|
||||
// Create the new global variable...
|
||||
GlobalVariable *NG =
|
||||
new GlobalVariable(NewType, G1->isConstant(), G1->getLinkage(),
|
||||
|
|
Loading…
Reference in New Issue