mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Handle decl refs into protocol extensions in SILPrinter.
Swift SVN r28262
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user