[Lldb-commits] [lldb] r290687 - Quiet a warning where we weren't checking if this was the same and rhs.

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 28 13:19:43 PST 2016


Author: gclayton
Date: Wed Dec 28 15:19:42 2016
New Revision: 290687

URL: http://llvm.org/viewvc/llvm-project?rev=290687&view=rev
Log:
Quiet a warning where we weren't checking if this was the same and rhs.

Modified:
    lldb/trunk/tools/debugserver/source/MacOSX/CFBundle.cpp

Modified: lldb/trunk/tools/debugserver/source/MacOSX/CFBundle.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/CFBundle.cpp?rev=290687&r1=290686&r2=290687&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/CFBundle.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/CFBundle.cpp Wed Dec 28 15:19:42 2016
@@ -33,7 +33,8 @@ CFBundle::CFBundle(const CFBundle &rhs)
 // CFBundle copy constructor
 //----------------------------------------------------------------------
 CFBundle &CFBundle::operator=(const CFBundle &rhs) {
-  *this = rhs;
+  if (this != &rhs)
+    *this = rhs;
   return *this;
 }
 




More information about the lldb-commits mailing list