[llvm] 8b52299 - Fix gcc Wparentheses warning. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 08:28:51 PDT 2024


Author: Simon Pilgrim
Date: 2024-08-07T16:28:06+01:00
New Revision: 8b522992a94b7dd4a027bfc2c462f24aa93edbac

URL: https://github.com/llvm/llvm-project/commit/8b522992a94b7dd4a027bfc2c462f24aa93edbac
DIFF: https://github.com/llvm/llvm-project/commit/8b522992a94b7dd4a027bfc2c462f24aa93edbac.diff

LOG: Fix gcc Wparentheses warning. NFC.

Added: 
    

Modified: 
    llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
index bcba295442ad58..9b9686c627b752 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
+++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
@@ -1706,9 +1706,8 @@ OperandMatcher &
 InstructionMatcher::addOperand(unsigned OpIdx, const std::string &SymbolicName,
                                unsigned AllocatedTemporariesBaseID,
                                bool IsVariadic) {
-  assert(Operands.empty() ||
-         !Operands.back()->isVariadic() &&
-             "Cannot add more operands after a variadic operand");
+  assert((Operands.empty() || !Operands.back()->isVariadic()) &&
+         "Cannot add more operands after a variadic operand");
   Operands.emplace_back(new OperandMatcher(
       *this, OpIdx, SymbolicName, AllocatedTemporariesBaseID, IsVariadic));
   if (!SymbolicName.empty())


        


More information about the llvm-commits mailing list