[Lldb-commits] [PATCH] D13094: LLDB-MI: Fix assignment operator in CMIUtilString

Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 25 11:10:24 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL248597: [lldb-mi] Fix assignment operator in CMIUtilString (authored by dperchik).

Changed prior to commit:
  http://reviews.llvm.org/D13094?vs=35620&id=35741#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D13094

Files:
  lldb/trunk/tools/lldb-mi/MIUtilString.cpp

Index: lldb/trunk/tools/lldb-mi/MIUtilString.cpp
===================================================================
--- lldb/trunk/tools/lldb-mi/MIUtilString.cpp
+++ lldb/trunk/tools/lldb-mi/MIUtilString.cpp
@@ -63,14 +63,7 @@
 //--
 CMIUtilString &CMIUtilString::operator=(const char *vpRhs)
 {
-    if (*this == vpRhs)
-        return *this;
-
-    if (vpRhs != nullptr)
-    {
-        assign(vpRhs);
-    }
-
+    assign(vpRhs);
     return *this;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13094.35741.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150925/0095de3e/attachment-0001.bin>


More information about the lldb-commits mailing list