Skip to content

Commit 8adec32

Browse files
committed
SIL: fix two comments in Type.swift
There is no `isNominal` property in SIL.Type.
1 parent eadfbf6 commit 8adec32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftCompilerSources/Sources/SIL/Type.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public struct Type : CustomStringConvertible, NoReflectionChildren {
8181
!isNoEscapeFunction && isEscapable(in: function)
8282
}
8383

84-
/// Can only be used if the type is in fact a nominal type (`isNominal` is true).
84+
/// Can only be used if the type is in fact a nominal type.
8585
public var nominal: NominalTypeDecl? {
8686
bridged.getNominalOrBoundGenericNominal().getAs(NominalTypeDecl.self)
8787
}
@@ -128,7 +128,7 @@ public struct Type : CustomStringConvertible, NoReflectionChildren {
128128
function.bridged.getLoweredType(self.bridged).type
129129
}
130130

131-
/// Can only be used if the type is in fact a nominal type (`isNominal` is true).
131+
/// Can only be used if the type is in fact a nominal type.
132132
/// Returns nil if the nominal is a resilient type because in this case the complete list
133133
/// of fields is not known.
134134
public func getNominalFields(in function: Function) -> NominalFieldsArray? {

0 commit comments

Comments
 (0)