[Lldb-commits] [lldb] d22bee1 - [lldb] Update PipeWindows.cpp to new Status API

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 27 15:52:11 PDT 2024


Author: Adrian Prantl
Date: 2024-08-27T15:52:04-07:00
New Revision: d22bee143f4a1d867103571e23c992bf97f8e4b3

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

LOG: [lldb] Update PipeWindows.cpp to new Status API

Added: 
    

Modified: 
    lldb/source/Host/windows/PipeWindows.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/windows/PipeWindows.cpp b/lldb/source/Host/windows/PipeWindows.cpp
index 17c8087982e539..d79dc3c2f82c90 100644
--- a/lldb/source/Host/windows/PipeWindows.cpp
+++ b/lldb/source/Host/windows/PipeWindows.cpp
@@ -136,7 +136,7 @@ Status PipeWindows::CreateWithUniqueName(llvm::StringRef prefix,
     ::RpcStringFreeA(&unique_string);
     error = CreateNew(pipe_name, child_process_inherit);
   } else {
-    error.SetError(status, eErrorTypeWin32);
+    error = Status(status, eErrorTypeWin32);
   }
   if (error.Success())
     name = pipe_name;


        


More information about the lldb-commits mailing list