We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 510f29a commit b384f5eCopy full SHA for b384f5e
include/swift/SIL/SILType.h
@@ -290,6 +290,12 @@ class SILType {
290
bool hasReferenceSemantics() const {
291
return getSwiftRValueType().hasReferenceSemantics();
292
}
293
+
294
+ /// Returns true if the referenced type is any sort of class-reference type,
295
+ /// meaning anything with reference semantics that is not a function type.
296
+ bool isAnyClassReferenceType() const {
297
+ return getSwiftRValueType().isAnyClassReferenceType();
298
+ }
299
300
/// Returns true if the referenced type is guaranteed to have a
301
/// single-retainable-pointer representation.
0 commit comments