File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
SwiftCompilerSources/Sources/SIL Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ final public class FunctionArgument : Argument {
5252 public var isIndirectResult : Bool {
5353 return index < parentFunction. numIndirectResultArguments
5454 }
55+
56+ public var hasResultDependsOn : Bool {
57+ return bridged. hasResultDependsOn ( )
58+ }
5559}
5660
5761public struct Phi {
Original file line number Diff line number Diff line change @@ -809,6 +809,7 @@ struct BridgedArgument {
809809 BRIDGED_INLINE BridgedArgumentConvention getConvention () const ;
810810 BRIDGED_INLINE bool isSelf () const ;
811811 BRIDGED_INLINE bool isReborrow () const ;
812+ BRIDGED_INLINE bool hasResultDependsOn () const ;
812813};
813814
814815struct OptionalBridgedArgument {
Original file line number Diff line number Diff line change @@ -424,6 +424,11 @@ bool BridgedArgument::isSelf() const {
424424 return fArg ->isSelf ();
425425}
426426
427+ bool BridgedArgument::hasResultDependsOn () const {
428+ auto *fArg = static_cast <swift::SILFunctionArgument*>(getArgument ());
429+ return fArg ->hasResultDependsOn ();
430+ }
431+
427432bool BridgedArgument::isReborrow () const {
428433 return getArgument ()->isReborrow ();
429434}
You can’t perform that action at this time.
0 commit comments