mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Remove TypeChecker::getTypeOfRValue()
This commit is contained in:
@@ -649,7 +649,12 @@ Type TypeChecker::getUnopenedTypeOfReference(VarDecl *value, Type baseType,
|
||||
if (value->isInvalid())
|
||||
return ErrorType::get(Context);
|
||||
|
||||
Type requestedType = getTypeOfRValue(value, wantInterfaceType);
|
||||
Type requestedType = (wantInterfaceType
|
||||
? value->getInterfaceType()
|
||||
: value->getType());
|
||||
|
||||
requestedType = requestedType->getLValueOrInOutObjectType()
|
||||
->getReferenceStorageReferent();
|
||||
|
||||
// If we're dealing with contextual types, and we referenced this type from
|
||||
// a different context, map the type.
|
||||
|
||||
Reference in New Issue
Block a user