aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Sigg <csigg@google.com>2024-09-06 11:55:24 +0200
committerGitHub <noreply@github.com>2024-09-06 11:55:24 +0200
commitd4e320e6f4dd78929cec44b342b6035a6bbd6323 (patch)
tree0690875a0e2393811f6d0c44cdb58dd12468a663
parente40c5b42fe8f489ea4bac4694ef58f09bd95263b (diff)
downloadllvm-d4e320e6f4dd78929cec44b342b6035a6bbd6323.zip
llvm-d4e320e6f4dd78929cec44b342b6035a6bbd6323.tar.gz
llvm-d4e320e6f4dd78929cec44b342b6035a6bbd6323.tar.bz2
[lldb][NFC] Fix -Wparentheses warning.
Fix `using the result of an assignment as a condition without parentheses` warning.
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 04f0f52..9cf37e2 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();