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; } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits