Skip to content

Commit 8d6781a

Browse files
[NFC] Add missing SILFunctionType::ExtInfo::getUncommonInfo() method.
1 parent 9660447 commit 8d6781a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/AST/Types.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3953,6 +3953,11 @@ class SILFunctionType final : public TypeBase, public llvm::FoldingSetNode,
39533953
return getSILFunctionLanguage(getRepresentation());
39543954
}
39553955

3956+
/// Return the underlying Uncommon value if it is not the default value.
3957+
Optional<Uncommon> getUncommonInfo() const {
3958+
return Other.empty() ? Optional<Uncommon>() : Other;
3959+
}
3960+
39563961
bool hasSelfParam() const {
39573962
switch (getRepresentation()) {
39583963
case Representation::Thick:

0 commit comments

Comments
 (0)