[llvm-commits] [llvm] r139775 - /llvm/trunk/lib/DebugInfo/DWARFDebugLine.cpp

Benjamin Kramer benny.kra at googlemail.com
Wed Sep 14 20:20:04 PDT 2011


Author: d0k
Date: Wed Sep 14 22:20:04 2011
New Revision: 139775

URL: http://llvm.org/viewvc/llvm-project?rev=139775&view=rev
Log:
DWARF: Silence GCC -Wsign-compare warning.

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

Modified: llvm/trunk/lib/DebugInfo/DWARFDebugLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFDebugLine.cpp?rev=139775&r1=139774&r2=139775&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFDebugLine.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFDebugLine.cpp Wed Sep 14 22:20:04 2011
@@ -394,7 +394,7 @@
         // of such opcodes because they are specified in the prologue
         // as a multiple of LEB128 operands for each opcode.
         {
-          assert(opcode - 1 < prologue->StandardOpcodeLengths.size());
+          assert(opcode - 1U < prologue->StandardOpcodeLengths.size());
           uint8_t opcode_length = prologue->StandardOpcodeLengths[opcode - 1];
           for (uint8_t i=0; i<opcode_length; ++i)
             debug_line_data.getULEB128(offset_ptr);





More information about the llvm-commits mailing list