From 6dd9f8feb336b06b3d9077b17d88e899f1c622a9 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 2 May 2014 21:28:49 +0000 Subject: Satisfy GCC's urgent need for parentheses around ‘&&’ within ‘||’. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit llvm-svn: 207871 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 7058c4e95ae..2c584350a79 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2924,8 +2924,8 @@ SDValue SelectionDAG::FoldConstantArithmetic(unsigned Opcode, EVT VT, } } - assert((Scalar1 && Scalar2) || - VT.getVectorNumElements() == Outputs.size() && "No scalar or vector!"); + assert((Scalar1 && Scalar2) || (VT.getVectorNumElements() == Outputs.size() && + "Expected a scalar or vector!")); // Handle the scalar case first. if (!VT.isVector()) -- cgit v1.2.3