[llvm] e2368af - Fix GCC Wparentheses warning in assert condition / message. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 09:02:41 PST 2024


Author: Simon Pilgrim
Date: 2024-11-20T17:02:23Z
New Revision: e2368afbd0d9b7e8fb900f54c8d71787e44d5774

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

LOG: Fix GCC Wparentheses warning in assert condition / message. NFC.

Added: 
    

Modified: 
    llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 030d0e1c82ab73..ff9be3dc24ce59 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -3849,8 +3849,8 @@ static void emitGlobalConstantImpl(const DataLayout &DL, const Constant *CV,
                                    AsmPrinter &AP, const Constant *BaseCV,
                                    uint64_t Offset,
                                    AsmPrinter::AliasMapTy *AliasList) {
-  assert(!AliasList || AP.TM.getTargetTriple().isOSBinFormatXCOFF() &&
-                           "AliasList only expected for XCOFF");
+  assert((!AliasList || AP.TM.getTargetTriple().isOSBinFormatXCOFF()) &&
+         "AliasList only expected for XCOFF");
   emitGlobalAliasInline(AP, Offset, AliasList);
   uint64_t Size = DL.getTypeAllocSize(CV->getType());
 


        


More information about the llvm-commits mailing list