Skip to content

Commit 611b1fe

Browse files
committed
Change the isa<FuncDecl> checking to be AbstractFunctionDecl instead
1 parent 96094ac commit 611b1fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/PrintAsObjC/PrintAsObjC.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -956,9 +956,9 @@ class ObjCPrinter : private DeclVisitor<ObjCPrinter>,
956956
cast<ValueDecl>(D)->isInstanceMember()))
957957
continue;
958958

959-
if (isa<FuncDecl>(candidate)) {
960-
auto cParams = cast<FuncDecl>(candidate)->getParameters();
961-
auto dParams = cast<FuncDecl>(D)->getParameters();
959+
if (isa<AbstractFunctionDecl>(candidate)) {
960+
auto cParams = cast<AbstractFunctionDecl>(candidate)->getParameters();
961+
auto dParams = cast<AbstractFunctionDecl>(D)->getParameters();
962962

963963
if (cParams->size() != dParams->size())
964964
continue;

0 commit comments

Comments
 (0)