File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
SwiftCompilerSources/Sources/Optimizer/PassManager Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -448,6 +448,14 @@ extension GlobalValueInst {
448
448
}
449
449
}
450
450
451
+ extension LoadInst {
452
+ func set( ownership: LoadInst . LoadOwnership , _ context: some MutatingContext ) {
453
+ context. notifyInstructionsChanged ( )
454
+ bridged. LoadInst_setOwnership ( ownership. rawValue)
455
+ context. notifyInstructionChanged ( self )
456
+ }
457
+ }
458
+
451
459
extension TermInst {
452
460
func replaceBranchTarget( from fromBlock: BasicBlock , to toBlock: BasicBlock , _ context: some MutatingContext ) {
453
461
context. notifyBranchesChanged ( )
Original file line number Diff line number Diff line change @@ -804,6 +804,10 @@ struct BridgedInstruction {
804
804
getAs<swift::GlobalValueInst>()->setBare (true );
805
805
}
806
806
807
+ void LoadInst_setOwnership (SwiftInt ownership) const {
808
+ getAs<swift::LoadInst>()->setOwnershipQualifier ((swift::LoadOwnershipQualifier)ownership);
809
+ }
810
+
807
811
SWIFT_IMPORT_UNSAFE
808
812
inline BridgedBasicBlock CheckedCastBranch_getSuccessBlock () const ;
809
813
You can’t perform that action at this time.
0 commit comments