File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7687,26 +7687,26 @@ void SILWitnessTable::verify(const SILModule &M) const {
7687
7687
}
7688
7688
7689
7689
// / Verify that a default witness table follows invariants.
7690
- void SILDefaultWitnessTable::verify (const SILModule &M ) const {
7690
+ void SILDefaultWitnessTable::verify (const SILModule &mod ) const {
7691
7691
#ifndef NDEBUG
7692
- for (const Entry &E : getEntries ()) {
7692
+ for (const Entry &entry : getEntries ()) {
7693
7693
// FIXME: associated type witnesses.
7694
- if (!E .isValid () || E .getKind () != SILWitnessTable::Method)
7694
+ if (!entry .isValid () || entry .getKind () != SILWitnessTable::Method)
7695
7695
continue ;
7696
7696
7697
- SILFunction *F = E .getMethodWitness ().Witness ;
7698
- if (!F )
7697
+ auto *witnessFunction = entry .getMethodWitness ().Witness ;
7698
+ if (!witnessFunction )
7699
7699
continue ;
7700
7700
7701
7701
#if 0
7702
7702
// FIXME: For now, all default witnesses are private.
7703
- assert(F ->hasValidLinkageForFragileRef(IsSerialized) &&
7703
+ assert(witnessFunction ->hasValidLinkageForFragileRef(IsSerialized) &&
7704
7704
"Default witness tables should not reference "
7705
7705
"less visible functions.");
7706
7706
#endif
7707
7707
7708
- assert (F ->getLoweredFunctionType ()->getRepresentation () ==
7709
- SILFunctionTypeRepresentation::WitnessMethod &&
7708
+ assert (witnessFunction ->getLoweredFunctionType ()->getRepresentation () ==
7709
+ SILFunctionTypeRepresentation::WitnessMethod &&
7710
7710
" Default witnesses must have witness_method representation." );
7711
7711
}
7712
7712
#endif
You can’t perform that action at this time.
0 commit comments