Skip to content

Commit 71e47a3

Browse files
authored
Merge pull request #8277 from gottesmm/add_silparameterinfo_is_direct_guaranteed
2 parents 223cb53 + 74b6a19 commit 71e47a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/AST/Types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,6 +2802,10 @@ class SILParameterInfo {
28022802
return isIndirectFormalParameter(getConvention());
28032803
}
28042804

2805+
bool isDirectGuaranteed() const {
2806+
return getConvention() == ParameterConvention::Direct_Guaranteed;
2807+
}
2808+
28052809
bool isIndirectInGuaranteed() const {
28062810
return getConvention() == ParameterConvention::Indirect_In_Guaranteed;
28072811
}

0 commit comments

Comments
 (0)