File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -936,8 +936,9 @@ class CalledOnceChecker : public ConstStmtVisitor<CalledOnceChecker> {
936
936
937
937
// / Return true if the only parameter of the function is conventional.
938
938
static bool isOnlyParameterConventional (const FunctionDecl *Function) {
939
- return Function->getNumParams () == 1 &&
940
- hasConventionalSuffix (Function->getName ());
939
+ IdentifierInfo *II = Function->getIdentifier ();
940
+ return Function->getNumParams () == 1 && II &&
941
+ hasConventionalSuffix (II->getName ());
941
942
}
942
943
943
944
// / Return true/false if 'swift_async' attribute states that the given
Original file line number Diff line number Diff line change
1
+ // RUN: %clang_cc1 -verify -fsyntax-only -Wcompletion-handler %s
2
+
3
+ // expected-no-diagnostics
4
+
5
+ class HasCtor {
6
+ HasCtor (void *) {}
7
+ };
You can’t perform that action at this time.
0 commit comments