From 5b6b500687374c2e51bf8eeb2f7f776cc173cc31 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 25 Jun 2018 11:19:05 +0000 Subject: [PATCH] Fix -Wparentheses gcc warning. NFCI. llvm-svn: 335451 --- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index dde49b2f1e13..7f7f097b8f35 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1950,7 +1950,7 @@ SDValue DAGCombiner::foldBinOpIntoSelect(SDNode *BO) { } static SDValue foldAddSubBoolOfMaskedVal(SDNode *N, SelectionDAG &DAG) { - assert(N->getOpcode() == ISD::ADD || N->getOpcode() == ISD::SUB && + assert((N->getOpcode() == ISD::ADD || N->getOpcode() == ISD::SUB) && "Expecting add or sub"); // Match a constant operand and a zext operand for the math instruction: