commit | c1edf566b9ba18806c9a69e77db1cc8e57a14c8d | [log] [tgz] |
---|---|---|
author | Mehdi Amini <mehdi.amini@apple.com> | Fri Nov 11 04:29:25 2016 +0000 |
committer | Mehdi Amini <mehdi.amini@apple.com> | Fri Nov 11 04:29:25 2016 +0000 |
tree | ea1b174a6e594d2b6929f9e4845cc2ba3d9d6f93 | |
parent | 41af43092ccc8030bb49cea324d85eecd5ae68a8 [diff] [blame] |
Prevent at compile time converting from Error::success() to Expected<T> This would trigger an assertion at runtime otherwise. Differential Revision: https://reviews.llvm.org/D26482 llvm-svn: 286562
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index f0494a8..49733a5 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -2672,7 +2672,7 @@ response.GetEscapedBinaryData(output); if (command_output) command_output->assign(output); - return Error::success(); + return Error(); } return Error("unable to send packet"); }