Author: Christian Sigg
Date: 2024-09-06T11:55:24+02:00
New Revision: d4e320e6f4dd78929cec44b342b6035a6bbd6323

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

LOG: [lldb][NFC] Fix -Wparentheses warning.

Fix `using the result of an assignment as a condition without parentheses` 
warning.

Added: 
    

Modified: 
    lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp 
b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 04f0f525e3ebba..9cf37e271bcde7 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -947,7 +947,7 @@ Status GDBRemoteCommunication::StartDebugserverProcess(
 
   Status error;
   FileSpec &debugserver_file_spec = launch_info.GetExecutableFile();
-  if (debugserver_file_spec = GetDebugserverPath(platform)) {
+  if ((debugserver_file_spec = GetDebugserverPath(platform))) {
     std::string debugserver_path = debugserver_file_spec.GetPath();
 
     Args &debugserver_args = launch_info.GetArguments();


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to