From 02f74b08615dfb606b0f1c4dfe1889b3fd3ccedb Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Wed, 28 Dec 2016 21:19:42 +0000 Subject: [PATCH] Quiet a warning where we weren't checking if this was the same and rhs. llvm-svn: 290687 --- lldb/tools/debugserver/source/MacOSX/CFBundle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp b/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp index 7b080e60cdb3..40f82b4243e0 100644 --- a/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp +++ b/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp @@ -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; }