Gardening: Fix some unused variable warnings in no-assert builds

This commit is contained in:
Slava Pestov
2017-02-14 23:21:11 -08:00
parent c309fb2620
commit 41eba98902
15 changed files with 32 additions and 15 deletions

View File

@@ -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;
}