[lldb] [Host/SerialPort] Fix build with GCC 7
authorMartin Storsjö <martin@martin.st>
Sat, 23 Oct 2021 09:52:55 +0000 (12:52 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 23 Oct 2021 09:52:55 +0000 (12:52 +0300)
lldb/source/Host/common/File.cpp

index 5ad5ae6..27a47ca 100644 (file)
@@ -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,