Remove dead store.
authorJason Molenda <jmolenda@apple.com>
Thu, 16 Oct 2014 07:49:27 +0000 (07:49 +0000)
committerJason Molenda <jmolenda@apple.com>
Thu, 16 Oct 2014 07:49:27 +0000 (07:49 +0000)
clang static analyzer fixit.

llvm-svn: 219907

lldb/source/Target/Process.cpp

index 5bfca66..037ad68 100644 (file)
@@ -2535,10 +2535,10 @@ Process::WriteMemory (addr_t addr, const void *buf, size_t size, Error &error)
             });
             
             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