Recommit: [NFC][IR] Make Module::getGlobalList() private
This reverts commit cb5f239363.
This commit is contained in:
@@ -3693,7 +3693,7 @@ Error BitcodeReader::globalCleanup() {
|
||||
UpgradedVariables.emplace_back(&GV, Upgraded);
|
||||
for (auto &Pair : UpgradedVariables) {
|
||||
Pair.first->eraseFromParent();
|
||||
TheModule->getGlobalList().push_back(Pair.second);
|
||||
TheModule->insertGlobalVariable(Pair.second);
|
||||
}
|
||||
|
||||
// Force deallocation of memory for these vectors to favor the client that
|
||||
|
||||
Reference in New Issue
Block a user