SIL: Handle decl refs into protocol extensions in SILPrinter.

Swift SVN r28262
This commit is contained in:
Joe Groff
2015-05-07 14:38:24 +00:00
parent 7a96e55cde
commit ea99bea530

View File

@@ -176,6 +176,9 @@ static void printFullContext(const DeclContext *Context, raw_ostream &Buffer) {
switch (Base->getKind()) {
default:
llvm_unreachable("unhandled context kind in SILPrint!");
case TypeKind::Protocol:
ExtNominal = cast<ProtocolType>(Base)->getDecl();
break;
case TypeKind::Enum:
ExtNominal = cast<EnumType>(Base)->getDecl();
break;