r252855 - [Sema] Remove unnecessary parens in check using logical or; NFC.

Nathan Wilson via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 11 20:25:03 PST 2015


Author: nwilson
Date: Wed Nov 11 22:25:03 2015
New Revision: 252855

URL: http://llvm.org/viewvc/llvm-project?rev=252855&view=rev
Log:
[Sema] Remove unnecessary parens in check using logical or; NFC.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=252855&r1=252854&r2=252855&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Wed Nov 11 22:25:03 2015
@@ -7612,7 +7612,7 @@ Sema::ActOnFunctionDeclarator(Scope *S,
         // 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);
       }
 




More information about the cfe-commits mailing list