Fix `-Wparentheses` warnings. NFC.
authorMichael Liao <michael.hliao@gmail.com>
Wed, 14 Oct 2020 14:11:19 +0000 (10:11 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Wed, 14 Oct 2020 14:11:19 +0000 (10:11 -0400)
clang/lib/Sema/SemaExpr.cpp

index a02db22..0407d5b 100644 (file)
@@ -6384,10 +6384,10 @@ ExprResult Sema::BuildCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc,
   if (Context.isDependenceAllowed() &&
       (Fn->isTypeDependent() || Expr::hasAnyTypeDependentArguments(ArgExprs))) {
     assert(!getLangOpts().CPlusPlus);
-    assert(Fn->containsErrors() ||
-           llvm::any_of(ArgExprs,
-                        [](clang::Expr *E) { return E->containsErrors(); }) &&
-               "should only occur in error-recovery path.");
+    assert((Fn->containsErrors() ||
+            llvm::any_of(ArgExprs,
+                         [](clang::Expr *E) { return E->containsErrors(); })) &&
+           "should only occur in error-recovery path.");
     QualType ReturnType =
         llvm::isa_and_nonnull<FunctionDecl>(NDecl)
             ? dyn_cast<FunctionDecl>(NDecl)->getCallResultType()