summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-11-09 23:11:30 +0000
committerCraig Topper <craig.topper@intel.com>2018-11-09 23:11:30 +0000
commitf2e65f863617d1e0cd5aa6e10718272999a28836 (patch)
tree06cc025f62904c2f83f1f9f12359fd120526d6fd /llvm/lib
parent0bbb0d0720a8e65190e66c005fac488991829d31 (diff)
downloadbcm5719-llvm-f2e65f863617d1e0cd5aa6e10718272999a28836.tar.gz
bcm5719-llvm-f2e65f863617d1e0cd5aa6e10718272999a28836.zip
[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. llvm-svn: 346564
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 7444b5ab0b7..86b378db520 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud