mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Gardening: Fix some unused variable warnings in no-assert builds
This commit is contained in:
@@ -319,10 +319,15 @@ checkSpecializationRequirements(ArrayRef<Requirement> Requirements) {
|
||||
assert(FirstType && SecondType);
|
||||
assert(!FirstType->hasArchetype());
|
||||
assert(!SecondType->hasArchetype());
|
||||
|
||||
// Only one of the types should be concrete.
|
||||
assert(FirstType->hasTypeParameter() != SecondType->hasTypeParameter() &&
|
||||
"Only concrete type same-type requirements are supported by "
|
||||
"generic specialization");
|
||||
|
||||
(void) FirstType;
|
||||
(void) SecondType;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user