mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove apparently unnecessary filter for CMO serializing references to globalinit once variables
This commit is contained in:
@@ -337,9 +337,6 @@ bool CrossModuleSerializationSetup::canSerialize(SILInstruction *inst,
|
||||
});
|
||||
return canUse;
|
||||
}
|
||||
if (auto *GAI = dyn_cast<GlobalAddrInst>(inst)) {
|
||||
return !GAI->getReferencedGlobal()->getName().startswith("globalinit_");
|
||||
}
|
||||
if (auto *MI = dyn_cast<MethodInst>(inst)) {
|
||||
return !MI->getMember().isForeign;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user