From 1a61ff8707fa1f7e1d5f6cbfde1e97a71f4b78ca Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Sat, 25 Feb 2017 06:47:00 +0000 Subject: [PATCH] Fix -Wparentheses warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296246 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprScalar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 4326783382..145248c04a 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -81,8 +81,8 @@ static bool IsWidenedIntegerOp(const ASTContext &Ctx, const Expr *E) { /// Check if we can skip the overflow check for \p Op. static bool CanElideOverflowCheck(const ASTContext &Ctx, const BinOpInfo &Op) { - assert(isa(Op.E) || - isa(Op.E) && "Expected a unary or binary operator"); + assert((isa(Op.E) || isa(Op.E)) && + "Expected a unary or binary operator"); if (const auto *UO = dyn_cast(Op.E)) return IsWidenedIntegerOp(Ctx, UO->getSubExpr()); -- 2.40.0