[Lldb-commits] [lldb] r219904 - Remove unused variable.

Jason Molenda jmolenda at apple.com
Thu Oct 16 00:41:35 PDT 2014


Author: jmolenda
Date: Thu Oct 16 02:41:32 2014
New Revision: 219904

URL: http://llvm.org/viewvc/llvm-project?rev=219904&view=rev
Log:
Remove unused variable.
clang static analyzer fixit.

Modified:
    lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

Modified: lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp?rev=219904&r1=219903&r2=219904&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp Thu Oct 16 02:41:32 2014
@@ -5092,7 +5092,6 @@ ObjectFileMachO::SetLoadAddress (Target
                                  lldb::addr_t value,
                                  bool value_is_offset)
 {
-    bool changed = false;
     ModuleSP module_sp = GetModule();
     if (module_sp)
     {
@@ -5196,10 +5195,9 @@ ObjectFileMachO::SetLoadAddress (Target
                 }
             }
         }
-        changed = num_loaded_sections > 0;
         return num_loaded_sections > 0;
     }
-    return changed;
+    return false;
 }
 
 bool





More information about the lldb-commits mailing list