[Lldb-commits] [lldb] 8bfa7a6 - [lldb] Fix NativeThreadLinux to build with older compilers

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 19 03:50:06 PST 2022


Author: Pavel Labath
Date: 2022-01-19T12:49:47+01:00
New Revision: 8bfa7a6dcc274bf46ce1587cf51996a3389ceb63

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

LOG: [lldb] Fix NativeThreadLinux to build with older compilers

Added: 
    

Modified: 
    lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
index 50d8ce9c161c2..a5187a626c892 100644
--- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
@@ -549,5 +549,5 @@ NativeThreadLinux::GetSiginfo() const {
       GetProcess().GetSignalInfo(GetID(), siginfo_buf->getBufferStart());
   if (!error.Success())
     return error.ToError();
-  return siginfo_buf;
+  return std::move(siginfo_buf);
 }


        


More information about the lldb-commits mailing list