Fix warning '-Wparentheses'. NFC.
authorMichael Liao <michael.hliao@gmail.com>
Mon, 12 Jul 2021 13:23:59 +0000 (09:23 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Mon, 12 Jul 2021 13:25:30 +0000 (09:25 -0400)
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

index c6cf957df9881369397e3eeaf5d6b3e0b05ee206..4cd65c83ad07e6a105c98f31c194bb00064cdddb 100644 (file)
@@ -15165,8 +15165,8 @@ static bool performTBISimplification(SDValue Addr,
 
 static SDValue foldTruncStoreOfExt(SelectionDAG &DAG, SDNode *N) {
   auto OpCode = N->getOpcode();
-  assert(OpCode == ISD::STORE ||
-         OpCode == ISD::MSTORE && "Expected STORE dag node in input!");
+  assert((OpCode == ISD::STORE || OpCode == ISD::MSTORE) &&
+         "Expected STORE dag node in input!");
 
   if (auto Store = dyn_cast<StoreSDNode>(N)) {
     if (!Store->isTruncatingStore())