[Lldb-commits] [lldb] ea9e9d6 - [lldb] [Host/SerialPort] Fix build with GCC 7

Martin Storsjö via lldb-commits lldb-commits at lists.llvm.org
Sat Oct 23 02:56:03 PDT 2021


Author: Martin Storsjö
Date: 2021-10-23T12:52:55+03:00
New Revision: ea9e9d61b521adaaa2d7f03712f9f6b9e9dfe8a1

URL: https://github.com/llvm/llvm-project/commit/ea9e9d61b521adaaa2d7f03712f9f6b9e9dfe8a1
DIFF: https://github.com/llvm/llvm-project/commit/ea9e9d61b521adaaa2d7f03712f9f6b9e9dfe8a1.diff

LOG: [lldb] [Host/SerialPort] Fix build with GCC 7

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 5ad5ae6bb2192..27a47cab78925 100644
--- a/lldb/source/Host/common/File.cpp
+++ b/lldb/source/Host/common/File.cpp
@@ -837,7 +837,7 @@ SerialPort::Create(int fd, OpenOptions options, Options serial_options,
       return std::move(error);
   }
 
-  return out;
+  return std::move(out);
 }
 
 SerialPort::SerialPort(int fd, OpenOptions options,


        


More information about the lldb-commits mailing list