[Lldb-commits] [lldb] [lldb] refactor PlatformAndroid (PR #145382)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 25 06:16:23 PDT 2025


================
@@ -445,11 +518,9 @@ PlatformAndroid::GetLibdlFunctionDeclarations(lldb_private::Process *process) {
 }
 
 PlatformAndroid::AdbClientUP PlatformAndroid::GetAdbClient(Status &error) {
-  AdbClientUP adb(std::make_unique<AdbClient>(m_device_id));
-  if (adb)
-    error.Clear();
-  else
-    error = Status::FromErrorString("Failed to create AdbClient");
+  AdbClientUP adb = std::make_unique<AdbClient>(m_device_id);
+  error.Clear();
----------------
labath wrote:

```suggestion
```

https://github.com/llvm/llvm-project/pull/145382


More information about the lldb-commits mailing list