Skip to content

Commit 573863e

Browse files
committed
[LLDB] Add missing breaks for switch statement
llvm-svn: 371902
1 parent 02bcc86 commit 573863e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/tools/lldb-server/lldb-platform.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,16 @@ static Status save_socket_id_to_file(const std::string &socket_id,
119119
case atomic_write_error::failed_to_create_uniq_file:
120120
status = Status("Failed to create temp file: %s",
121121
ErrorMsgBuffer.c_str());
122+
break;
122123
case atomic_write_error::output_stream_error:
123124
status = Status("Failed to write to port file.");
125+
break;
124126
case atomic_write_error::failed_to_rename_temp_file:
125127
status = Status("Failed to rename file %s to %s: %s",
126128
ErrorMsgBuffer.c_str(),
127129
file_spec.GetPath().c_str(),
128130
ErrorMsgBuffer.c_str());
131+
break;
129132
}
130133
})) {
131134
return Status("Failed to atomically write file %s",

0 commit comments

Comments
 (0)