SIL: some Cloner cleanups and improvements

* move some Cloner utilities from ContextCommon.swift directly into Cloner.swift
* add an `cloneRecursively` overload which doesn't require the `customGetCloned` closure argument
* some small cleanups
This commit is contained in:
Erik Eckstein
2025-09-03 09:00:00 +02:00
parent 65d69fe965
commit 231042b9a8
5 changed files with 30 additions and 30 deletions

View File

@@ -1538,7 +1538,7 @@ struct BridgedCloner {
bool isValueCloned(BridgedValue v) const;
void recordClonedInstruction(BridgedInstruction origInst, BridgedInstruction clonedInst) const;
void recordFoldedValue(BridgedValue orig, BridgedValue mapped) const;
BridgedInstruction clone(BridgedInstruction inst);
BridgedInstruction clone(BridgedInstruction inst) const;
};
struct BridgedVerifier {