[llvm] a40a4c5 - [MC] MCSectionGOFF.h - fix GCC Wparentheses operator precedence warning around assert message. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 01:01:07 PDT 2025


Author: Simon Pilgrim
Date: 2025-06-27T08:59:46+01:00
New Revision: a40a4c552b92b369bd17cbb41a3b801d429f7443

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

LOG: [MC] MCSectionGOFF.h - fix GCC Wparentheses operator precedence warning around assert message. NFC.

Added: 
    

Modified: 
    llvm/include/llvm/MC/MCSectionGOFF.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/MCSectionGOFF.h b/llvm/include/llvm/MC/MCSectionGOFF.h
index b2ca74c3ba78a..1e6a331202f3c 100644
--- a/llvm/include/llvm/MC/MCSectionGOFF.h
+++ b/llvm/include/llvm/MC/MCSectionGOFF.h
@@ -110,7 +110,7 @@ class MCSectionGOFF final : public MCSection {
 
   // Returns the text style for a section. Only defined for ED and PR sections.
   GOFF::ESDTextStyle getTextStyle() const {
-    assert(isED() || isPR() || isVirtualSection() && "Expect ED or PR section");
+    assert((isED() || isPR() || isVirtualSection()) && "Expect ED or PR section");
     if (isED())
       return EDAttributes.TextStyle;
     if (isPR())


        


More information about the llvm-commits mailing list