[llvm] 8253fa2 - Fix warning '-Wparentheses'. NFC.

Michael Liao via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 12 06:25:42 PDT 2021


Author: Michael Liao
Date: 2021-07-12T09:25:30-04:00
New Revision: 8253fa229833e138619efc707cae1625a91455cf

URL: https://github.com/llvm/llvm-project/commit/8253fa229833e138619efc707cae1625a91455cf
DIFF: https://github.com/llvm/llvm-project/commit/8253fa229833e138619efc707cae1625a91455cf.diff

LOG: Fix warning '-Wparentheses'. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index c6cf957df988..4cd65c83ad07 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -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())


        


More information about the llvm-commits mailing list