AST: Remove implicit conversion from Witness to ConcreteDeclRef

This commit is contained in:
Slava Pestov
2017-10-06 22:32:40 -07:00
parent d4976893e6
commit 05d81081e1
3 changed files with 2 additions and 9 deletions

View File

@@ -1642,7 +1642,7 @@ void Serializer::writeDefaultWitnessTable(const ProtocolDecl *proto,
unsigned abbrCode = abbrCodes[DefaultWitnessTableLayout::Code];
for (auto member : proto->getMembers()) {
if (auto *value = dyn_cast<ValueDecl>(member)) {
ConcreteDeclRef witness = proto->getDefaultWitness(value);
auto witness = proto->getDefaultWitness(value);
if (!witness)
continue;