File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -4310,11 +4310,6 @@ class ProtocolDecl final : public NominalTypeDecl {
4310
4310
// / protocol.
4311
4311
bool inheritsFrom (const ProtocolDecl *Super) const ;
4312
4312
4313
- ProtocolType *getDeclaredType () const {
4314
- return reinterpret_cast <ProtocolType *>(
4315
- NominalTypeDecl::getDeclaredType ().getPointer ());
4316
- }
4317
-
4318
4313
SourceLoc getStartLoc () const { return ProtocolLoc; }
4319
4314
SourceRange getSourceRange () const {
4320
4315
return SourceRange (ProtocolLoc, getBraces ().End );
Original file line number Diff line number Diff line change @@ -4102,7 +4102,8 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
4102
4102
case SILFunctionType::Representation::WitnessMethod:
4103
4103
Printer << " witness_method: " ;
4104
4104
printTypeDeclName (
4105
- witnessMethodConformance.getRequirement ()->getDeclaredType ());
4105
+ witnessMethodConformance.getRequirement ()->getDeclaredType ()
4106
+ ->castTo <ProtocolType>());
4106
4107
break ;
4107
4108
case SILFunctionType::Representation::Closure:
4108
4109
Printer << " closure" ;
You can’t perform that action at this time.
0 commit comments