Merge pull request #76448 from eeckstein/fix-static-init-cloner

StaticInitCloner: skip begin_access instructions when cloning the initial value of a global
This commit is contained in:
eeckstein
2024-09-17 07:54:58 +02:00
committed by GitHub
4 changed files with 46 additions and 0 deletions

View File

@@ -186,6 +186,7 @@ struct BridgedCloner {
SWIFT_IMPORT_UNSAFE BridgedValue getClonedValue(BridgedValue v);
bool isValueCloned(BridgedValue v) const;
void clone(BridgedInstruction inst);
void recordFoldedValue(BridgedValue origValue, BridgedValue mappedValue);
};
struct BridgedSpecializationCloner {