summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-02-14 18:51:21 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-02-14 18:51:21 +0000
commit257fcd9b17119455a02f965b95200a286435e942 (patch)
tree9cd4144ddc9f7ef34dd32d5762750fe499c601e8
parentf69bbbbdd2fcf2e7939aa9afc070320778df4b43 (diff)
downloadbcm5719-llvm-257fcd9b17119455a02f965b95200a286435e942.tar.gz
bcm5719-llvm-257fcd9b17119455a02f965b95200a286435e942.zip
[lldb] [MainLoop] Remove redundant termination clause (NFCI)
Remove the redundant termination clause from within the loop. Since the check is done at the end of the loop, it's entirely redundant to the 'while' condition. If termination was requested, the latter will become false and the 'while' loop will terminate, resulting in the 'return' statement below the loop being executed (which is equivalent to the one used inside 'if'). Differential Revision: https://reviews.llvm.org/D58227 llvm-svn: 354050
-rw-r--r--lldb/source/Host/common/MainLoop.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lldb/source/Host/common/MainLoop.cpp b/lldb/source/Host/common/MainLoop.cpp
index 8a40d427abe..9bb5bfe61af 100644
--- a/lldb/source/Host/common/MainLoop.cpp
+++ b/lldb/source/Host/common/MainLoop.cpp
@@ -382,9 +382,6 @@ Status MainLoop::Run() {
return error;
impl.ProcessEvents();
-
- if (m_terminate_request)
- return Status();
}
return Status();
}
OpenPOWER on IntegriCloud