summaryrefslogtreecommitdiffstats
path: root/lldb/tools
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2019-09-13 22:00:03 +0000
committerTim Shen <timshen91@gmail.com>2019-09-13 22:00:03 +0000
commit573863ea180b7ce73dda4e019ad94fddf2222363 (patch)
treef42e5cc4ddba768004e90de68f51fdd57f27a457 /lldb/tools
parent02bcc86b08dc1f50be401240307d6819483ca822 (diff)
downloadbcm5719-llvm-573863ea180b7ce73dda4e019ad94fddf2222363.tar.gz
bcm5719-llvm-573863ea180b7ce73dda4e019ad94fddf2222363.zip
[LLDB] Add missing breaks for switch statement
llvm-svn: 371902
Diffstat (limited to 'lldb/tools')
-rw-r--r--lldb/tools/lldb-server/lldb-platform.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/tools/lldb-server/lldb-platform.cpp b/lldb/tools/lldb-server/lldb-platform.cpp
index c837eea32cb..54342b56e43 100644
--- a/lldb/tools/lldb-server/lldb-platform.cpp
+++ b/lldb/tools/lldb-server/lldb-platform.cpp
@@ -119,13 +119,16 @@ static Status save_socket_id_to_file(const std::string &socket_id,
case atomic_write_error::failed_to_create_uniq_file:
status = Status("Failed to create temp file: %s",
ErrorMsgBuffer.c_str());
+ break;
case atomic_write_error::output_stream_error:
status = Status("Failed to write to port file.");
+ break;
case atomic_write_error::failed_to_rename_temp_file:
status = Status("Failed to rename file %s to %s: %s",
ErrorMsgBuffer.c_str(),
file_spec.GetPath().c_str(),
ErrorMsgBuffer.c_str());
+ break;
}
})) {
return Status("Failed to atomically write file %s",
OpenPOWER on IntegriCloud