diff options
| author | Greg Clayton <gclayton@apple.com> | 2016-12-28 21:19:42 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2016-12-28 21:19:42 +0000 |
| commit | 02f74b08615dfb606b0f1c4dfe1889b3fd3ccedb (patch) | |
| tree | fb0499a9add260a09ba9e89aef836a7b395c86d1 /lldb/tools/debugserver/source/MacOSX/CFBundle.cpp | |
| parent | 2b59eca1f7b1d4814e417ed44e3b9d0343e0c7a5 (diff) | |
| download | bcm5719-llvm-02f74b08615dfb606b0f1c4dfe1889b3fd3ccedb.tar.gz bcm5719-llvm-02f74b08615dfb606b0f1c4dfe1889b3fd3ccedb.zip | |
Quiet a warning where we weren't checking if this was the same and rhs.
llvm-svn: 290687
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/CFBundle.cpp')
| -rw-r--r-- | lldb/tools/debugserver/source/MacOSX/CFBundle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp b/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp index 7b080e60cdb..40f82b4243e 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; } |

