diff options
| -rw-r--r-- | lldb/tools/lldb-mi/MIUtilString.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lldb/tools/lldb-mi/MIUtilString.cpp b/lldb/tools/lldb-mi/MIUtilString.cpp index f1c766bbd52..176d9a6de74 100644 --- a/lldb/tools/lldb-mi/MIUtilString.cpp +++ b/lldb/tools/lldb-mi/MIUtilString.cpp @@ -63,14 +63,7 @@ CMIUtilString::CMIUtilString(const std::string& vrStr) //-- CMIUtilString &CMIUtilString::operator=(const char *vpRhs) { - if (*this == vpRhs) - return *this; - - if (vpRhs != nullptr) - { - assign(vpRhs); - } - + assign(vpRhs); return *this; } |

