Author: Michał Górny Date: 2021-10-21T11:08:05+02:00 New Revision: b8c3683d46f92a693746217542ab4895562fa36c
URL: https://github.com/llvm/llvm-project/commit/b8c3683d46f92a693746217542ab4895562fa36c DIFF: https://github.com/llvm/llvm-project/commit/b8c3683d46f92a693746217542ab4895562fa36c.diff LOG: [lldb] [Host/SerialPort] Add std::moves for better compatibility Added: Modified: lldb/source/Host/common/File.cpp Removed: ################################################################################ diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index 68543535687a..1c8a0ab7f83e 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -821,20 +821,20 @@ SerialPort::Create(int fd, OpenOptions options, Options serial_options, Terminal term{fd}; if (llvm::Error error = term.SetRaw()) - return error; + return std::move(error); if (serial_options.BaudRate) { if (llvm::Error error = term.SetBaudRate(serial_options.BaudRate.getValue())) - return error; + return std::move(error); } if (serial_options.Parity) { if (llvm::Error error = term.SetParity(serial_options.Parity.getValue())) - return error; + return std::move(error); } if (serial_options.StopBits) { if (llvm::Error error = term.SetStopBits(serial_options.StopBits.getValue())) - return error; + return std::move(error); } return out; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits