Skip to content

Commit 74b6a19

Browse files
committed
[silgen] Add SILParameterInfo::isDirectGuaranteed().
This is just a direct counterpart of SILParameterInfo::isIndirect*(). rdar://31145255
1 parent 49941c5 commit 74b6a19

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)