mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Silence a bunch of Wunused-variable diagnostics
This commit is contained in:
@@ -1460,7 +1460,7 @@ static void tryOptimizeGenericDisjunction(ConstraintSystem &cs,
|
||||
|
||||
auto funcType = AFD->getInterfaceType();
|
||||
auto hasAnyOrOptional = funcType.findIf([](Type type) -> bool {
|
||||
if (auto objType = type->getOptionalObjectType())
|
||||
if (type->getOptionalObjectType())
|
||||
return true;
|
||||
|
||||
return type->isAny();
|
||||
|
||||
Reference in New Issue
Block a user