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 {
52
52
public var isIndirectResult : Bool {
53
53
return index < parentFunction. numIndirectResultArguments
54
54
}
55
+
56
+ public var hasResultDependsOn : Bool {
57
+ return bridged. hasResultDependsOn ( )
58
+ }
55
59
}
56
60
57
61
public struct Phi {
Original file line number Diff line number Diff line change @@ -809,6 +809,7 @@ struct BridgedArgument {
809
809
BRIDGED_INLINE BridgedArgumentConvention getConvention () const ;
810
810
BRIDGED_INLINE bool isSelf () const ;
811
811
BRIDGED_INLINE bool isReborrow () const ;
812
+ BRIDGED_INLINE bool hasResultDependsOn () const ;
812
813
};
813
814
814
815
struct OptionalBridgedArgument {
Original file line number Diff line number Diff line change @@ -424,6 +424,11 @@ bool BridgedArgument::isSelf() const {
424
424
return fArg ->isSelf ();
425
425
}
426
426
427
+ bool BridgedArgument::hasResultDependsOn () const {
428
+ auto *fArg = static_cast <swift::SILFunctionArgument*>(getArgument ());
429
+ return fArg ->hasResultDependsOn ();
430
+ }
431
+
427
432
bool BridgedArgument::isReborrow () const {
428
433
return getArgument ()->isReborrow ();
429
434
}
You can’t perform that action at this time.
0 commit comments