Skip to content

Commit 5642ce5

Browse files
committed
[GlobalOpt] Drop redundant setExternallyInitialized() call (NFC)
This is part of copyAttributesFrom().
1 parent 47a4773 commit 5642ce5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Transforms/IPO/GlobalOpt.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ static GlobalVariable *SRAGlobal(GlobalVariable *GV, const DataLayout &DL) {
513513
ElTy, false, GlobalVariable::InternalLinkage, In,
514514
GV->getName() + "." + Twine(ElementIdx), GV->getThreadLocalMode(),
515515
GV->getType()->getAddressSpace());
516-
NGV->setExternallyInitialized(GV->isExternallyInitialized());
517516
NGV->copyAttributesFrom(GV);
518517
NewGlobals.insert(std::make_pair(ElementIdx, NGV));
519518

0 commit comments

Comments
 (0)