File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -561,12 +561,12 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
561
561
void checkArchetypeMethodInst (ArchetypeMethodInst *AMI) {
562
562
DEBUG (llvm::dbgs () << " verifying" ;
563
563
AMI->print (llvm::dbgs ()));
564
- FunctionType *methodType = AMI->getType (0 ).getAs <FunctionType >();
564
+ AnyFunctionType *methodType = AMI->getType (0 ).getAs <AnyFunctionType >();
565
565
DEBUG (llvm::dbgs () << " method type " ;
566
566
methodType->print (llvm::dbgs ());
567
567
llvm::dbgs () << " \n " );
568
568
require (methodType,
569
- " result method must be of a concrete function type" );
569
+ " result method must be a function type" );
570
570
require (methodType->isThin ()
571
571
== AMI->getLookupArchetype ().castTo <ArchetypeType>()
572
572
->requiresClass (),
@@ -595,9 +595,9 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
595
595
}
596
596
597
597
void checkProtocolMethodInst (ProtocolMethodInst *EMI) {
598
- FunctionType *methodType = EMI->getType (0 ).getAs <FunctionType >();
598
+ AnyFunctionType *methodType = EMI->getType (0 ).getAs <AnyFunctionType >();
599
599
require (methodType,
600
- " result method must be of a concrete function type" );
600
+ " result method must be a function type" );
601
601
SILType operandType = EMI->getOperand ().getType ();
602
602
require (methodType->isThin ()
603
603
== operandType.isClassExistentialType (),
You can’t perform that action at this time.
0 commit comments