[Lldb-commits] [lldb] r280931 - Fix unused variable and integer sign warnings from r280906

Ed Maste via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 8 06:11:31 PDT 2016


Author: emaste
Date: Thu Sep  8 08:11:31 2016
New Revision: 280931

URL: http://llvm.org/viewvc/llvm-project?rev=280931&view=rev
Log:
Fix unused variable and integer sign warnings from r280906

Modified:
    lldb/trunk/source/Core/Disassembler.cpp

Modified: lldb/trunk/source/Core/Disassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Disassembler.cpp?rev=280931&r1=280930&r2=280931&view=diff
==============================================================================
--- lldb/trunk/source/Core/Disassembler.cpp (original)
+++ lldb/trunk/source/Core/Disassembler.cpp Thu Sep  8 08:11:31 2016
@@ -369,7 +369,6 @@ bool Disassembler::PrintInstructions(Dis
 
   const uint32_t max_opcode_byte_size =
       disasm_ptr->GetInstructionList().GetMaxOpcocdeByteSize();
-  uint32_t offset = 0;
   SymbolContext sc;
   SymbolContext prev_sc;
   AddressRange current_source_line_range;
@@ -549,7 +548,7 @@ bool Disassembler::PrintInstructions(Dis
                   if (this_line != previous_line) {
 
                     std::vector<uint32_t> previous_lines;
-                    for (int i = 0;
+                    for (uint32_t i = 0;
                          i < num_mixed_context_lines &&
                          (this_line.line - num_mixed_context_lines) > 0;
                          i++) {
@@ -579,7 +578,7 @@ bool Disassembler::PrintInstructions(Dis
                     source_lines_to_display.current_source_line =
                         source_lines_to_display.lines.size() - 1;
 
-                    for (int i = 0; i < num_mixed_context_lines; i++) {
+                    for (uint32_t i = 0; i < num_mixed_context_lines; i++) {
                       SourceLine next_line;
                       next_line.file = this_line.file;
                       next_line.line = this_line.line + i + 1;




More information about the lldb-commits mailing list