mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Minor NFC cleanups
This commit is contained in:
@@ -384,9 +384,7 @@ static Type findBaseTypeForReplacingArchetype(const ValueDecl *VD, const Type Ty
|
||||
return Type();
|
||||
|
||||
// Find the nominal type decl related to VD.
|
||||
NominalTypeDecl *NTD = VD->getDeclContext()->
|
||||
getAsNominalTypeOrNominalTypeExtensionContext();
|
||||
if (!NTD)
|
||||
if (!VD->getDeclContext()->isTypeContext())
|
||||
return Type();
|
||||
|
||||
return Ty->getRValueType()->getRValueInstanceType();
|
||||
|
||||
Reference in New Issue
Block a user