[Lldb-commits] [lldb] r219907 - Remove dead store.

Jason Molenda jmolenda at apple.com
Thu Oct 16 00:49:28 PDT 2014


Author: jmolenda
Date: Thu Oct 16 02:49:27 2014
New Revision: 219907

URL: http://llvm.org/viewvc/llvm-project?rev=219907&view=rev
Log:
Remove dead store.
clang static analyzer fixit.

Modified:
    lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=219907&r1=219906&r2=219907&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Thu Oct 16 02:49:27 2014
@@ -2535,10 +2535,10 @@ Process::WriteMemory (addr_t addr, const
             });
             
             if (bytes_written < size)
-                bytes_written += WriteMemoryPrivate (addr + bytes_written,
-                                                     ubuf + bytes_written,
-                                                     size - bytes_written,
-                                                     error);
+                WriteMemoryPrivate (addr + bytes_written,
+                                    ubuf + bytes_written,
+                                    size - bytes_written,
+                                    error);
         }
     }
     else





More information about the lldb-commits mailing list