]> granicus.if.org Git - clang/commitdiff
[Sema] Remove unnecessary parens in check using logical or; NFC.
authorNathan Wilson <nwilson20@gmail.com>
Thu, 12 Nov 2015 04:25:03 +0000 (04:25 +0000)
committerNathan Wilson <nwilson20@gmail.com>
Thu, 12 Nov 2015 04:25:03 +0000 (04:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252855 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 02f96ec0d18cce06404991ed0c359e75d43c7c56..172952e8ca1f7dfa7bdb01d152b16530d16cd51e 100644 (file)
@@ -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);
       }