diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 43267833821e..145248c04aa8 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/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());