[Lldb-commits] [lldb] r371902 - [LLDB] Add missing breaks for switch statement

Tim Shen via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 13 15:00:04 PDT 2019


Author: timshen
Date: Fri Sep 13 15:00:03 2019
New Revision: 371902

URL: http://llvm.org/viewvc/llvm-project?rev=371902&view=rev
Log:
[LLDB] Add missing breaks for switch statement

Modified:
    lldb/trunk/tools/lldb-server/lldb-platform.cpp

Modified: lldb/trunk/tools/lldb-server/lldb-platform.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-server/lldb-platform.cpp?rev=371902&r1=371901&r2=371902&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-server/lldb-platform.cpp (original)
+++ lldb/trunk/tools/lldb-server/lldb-platform.cpp Fri Sep 13 15:00:03 2019
@@ -119,13 +119,16 @@ static Status save_socket_id_to_file(con
                          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",




More information about the lldb-commits mailing list