summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 02f96ec0d18..172952e8ca1 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -7612,7 +7612,7 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
// following restrictions:
// - The declaration's parameter list shall be equivalent to an empty
// parameter list.
- if ((FPT->getNumParams() > 0) || (FPT->isVariadic()))
+ if (FPT->getNumParams() > 0 || FPT->isVariadic())
Diag(NewFD->getLocation(), diag::err_function_concept_with_params);
}
OpenPOWER on IntegriCloud