File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
SwiftCompilerSources/Sources Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -710,7 +710,7 @@ private extension SpecializationCloner {
710
710
. forEach { _, arg in
711
711
let clonedEntryBlockArgType = arg. type. getLoweredType ( in: clonedFunction)
712
712
let clonedEntryBlockArg = clonedEntryBlock. addFunctionArgument ( type: clonedEntryBlockArgType, self . context)
713
- clonedEntryBlockArg. copyFlags ( from: arg as! FunctionArgument )
713
+ clonedEntryBlockArg. copyFlags ( from: arg as! FunctionArgument , self . context )
714
714
}
715
715
}
716
716
Original file line number Diff line number Diff line change @@ -656,6 +656,18 @@ extension Argument {
656
656
}
657
657
}
658
658
659
+ extension FunctionArgument {
660
+ /// Copies the following flags from `arg`:
661
+ /// 1. noImplicitCopy
662
+ /// 2. lifetimeAnnotation
663
+ /// 3. closureCapture
664
+ /// 4. parameterPack
665
+ func copyFlags( from arg: FunctionArgument , _ context: some MutatingContext ) {
666
+ context. notifyInstructionsChanged ( )
667
+ bridged. copyFlags ( arg. bridged)
668
+ }
669
+ }
670
+
659
671
extension AllocRefInstBase {
660
672
func setIsStackAllocatable( _ context: some MutatingContext ) {
661
673
context. notifyInstructionsChanged ( )
Original file line number Diff line number Diff line change @@ -83,15 +83,6 @@ final public class FunctionArgument : Argument {
83
83
public var resultDependence : LifetimeDependenceConvention ? {
84
84
parentFunction. argumentConventions [ resultDependsOn: index]
85
85
}
86
-
87
- /// Copies the following flags from `arg`:
88
- /// 1. noImplicitCopy
89
- /// 2. lifetimeAnnotation
90
- /// 3. closureCapture
91
- /// 4. parameterPack
92
- public func copyFlags( from arg: FunctionArgument ) {
93
- bridged. copyFlags ( arg. bridged)
94
- }
95
86
}
96
87
97
88
public struct Phi {
You can’t perform that action at this time.
0 commit comments