Skip to content

Commit 71aafce

Browse files
committed
Satisfy GCC's urgent need for parentheses around ‘&&’ within ‘||’.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207871 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d036fef commit 71aafce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2924,8 +2924,8 @@ SDValue SelectionDAG::FoldConstantArithmetic(unsigned Opcode, EVT VT,
29242924
}
29252925
}
29262926

2927-
assert((Scalar1 && Scalar2) ||
2928-
VT.getVectorNumElements() == Outputs.size() && "No scalar or vector!");
2927+
assert((Scalar1 && Scalar2) || (VT.getVectorNumElements() == Outputs.size() &&
2928+
"Expected a scalar or vector!"));
29292929

29302930
// Handle the scalar case first.
29312931
if (!VT.isVector())

0 commit comments

Comments
 (0)