mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[silgen] Add SILParameterInfo::isDirectGuaranteed().
This is just a direct counterpart of SILParameterInfo::isIndirect*(). rdar://31145255
This commit is contained in:
@@ -2802,6 +2802,10 @@ public:
|
||||
return isIndirectFormalParameter(getConvention());
|
||||
}
|
||||
|
||||
bool isDirectGuaranteed() const {
|
||||
return getConvention() == ParameterConvention::Direct_Guaranteed;
|
||||
}
|
||||
|
||||
bool isIndirectInGuaranteed() const {
|
||||
return getConvention() == ParameterConvention::Indirect_In_Guaranteed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user