[llvm] 4859c46 - Fix gcc Wparentheses warning. NFC.

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


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

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

LOG: Fix gcc Wparentheses warning. NFC.

Added: 
    

Modified: 
    llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
index 44e1789a6c5d6..939a5163d55ab 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
@@ -1331,9 +1331,9 @@ DWARFDebugLine::LineTable::lookupAddress(object::SectionedAddress Address,
 uint32_t
 DWARFDebugLine::LineTable::lookupAddressImpl(object::SectionedAddress Address,
                                              bool *IsApproximateLine) const {
-  assert(!IsApproximateLine ||
-         !*IsApproximateLine && "Make sure IsApproximateLine is appropriately "
-                                "initialized, if provided");
+  assert((!IsApproximateLine || !*IsApproximateLine) &&
+         "Make sure IsApproximateLine is appropriately "
+         "initialized, if provided");
   // First, find an instruction sequence containing the given address.
   DWARFDebugLine::Sequence Sequence;
   Sequence.SectionIndex = Address.SectionIndex;


        


More information about the llvm-commits mailing list