mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] NFC: Rename misleading getSwiftRValueType() to getASTType()
Reference storage types are not RValues. Also, use more SILType helper methods to avoid line wrap.
This commit is contained in:
@@ -285,10 +285,10 @@ CanType swift::getNSBridgedClassOfCFClass(ModuleDecl *M, CanType type) {
|
||||
|
||||
static bool isCFBridgingConversion(ModuleDecl *M, SILType sourceType,
|
||||
SILType targetType) {
|
||||
return (sourceType.getSwiftRValueType() ==
|
||||
getNSBridgedClassOfCFClass(M, targetType.getSwiftRValueType()) ||
|
||||
targetType.getSwiftRValueType() ==
|
||||
getNSBridgedClassOfCFClass(M, sourceType.getSwiftRValueType()));
|
||||
return (sourceType.getASTType() ==
|
||||
getNSBridgedClassOfCFClass(M, targetType.getASTType()) ||
|
||||
targetType.getASTType() ==
|
||||
getNSBridgedClassOfCFClass(M, sourceType.getASTType()));
|
||||
}
|
||||
|
||||
/// Try to classify the dynamic-cast relationship between two types.
|
||||
|
||||
Reference in New Issue
Block a user