From a64afff8f49bdc7ea521069a1540d64914db2ae0 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 9 Nov 2018 23:11:30 +0000 Subject: [PATCH] [SelectionDAG] Fix a -Wparentheses warning from gcc in an assert. NFC gcc wants parentheses around the logical OR since there is a logical AND for the string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346564 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 7444b5ab0b7..86b378db520 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2195,8 +2195,8 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts, KnownBits Known2; unsigned NumElts = DemandedElts.getBitWidth(); - assert(!Op.getValueType().isVector() || - NumElts == Op.getValueType().getVectorNumElements() && + assert((!Op.getValueType().isVector() || + NumElts == Op.getValueType().getVectorNumElements()) && "Unexpected vector size"); if (!DemandedElts) -- 2.11.0