File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
SwiftCompilerSources/Sources/SIL Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -309,9 +309,14 @@ public struct Builder {
309
309
useConformancesOf. bridged)
310
310
return notifyNew ( initExistential. getAs ( InitExistentialRefInst . self) )
311
311
}
312
-
312
+
313
313
public func createMetatype( of type: Type , representation: swift . MetatypeRepresentation ) -> MetatypeInst {
314
314
let metatype = bridged. createMetatype ( type. bridged, representation)
315
315
return notifyNew ( metatype. getAs ( MetatypeInst . self) )
316
316
}
317
+
318
+ public func createEndCOWMutation( instance: Value , keepUnique: Bool = false ) -> EndCOWMutationInst {
319
+ let endMutation = bridged. createEndCOWMutation ( instance. bridged, keepUnique)
320
+ return notifyNew ( endMutation. getAs ( EndCOWMutationInst . self) )
321
+ }
317
322
}
Original file line number Diff line number Diff line change @@ -1364,6 +1364,11 @@ struct BridgedBuilder{
1364
1364
swift::SILType t = swift::SILType::getPrimitiveObjectType (swift::CanType (mt));
1365
1365
return {builder ().createMetatype (regularLoc (), t)};
1366
1366
}
1367
+
1368
+ SWIFT_IMPORT_UNSAFE
1369
+ BridgedInstruction createEndCOWMutation (BridgedValue instance, bool keepUnique) const {
1370
+ return {builder ().createEndCOWMutation (regularLoc (), instance.getSILValue (), keepUnique)};
1371
+ }
1367
1372
};
1368
1373
1369
1374
// AST bridging
You can’t perform that action at this time.
0 commit comments