diff options
author | Christian Sigg <csigg@google.com> | 2024-09-06 11:55:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 11:55:24 +0200 |
commit | d4e320e6f4dd78929cec44b342b6035a6bbd6323 (patch) | |
tree | 0690875a0e2393811f6d0c44cdb58dd12468a663 | |
parent | e40c5b42fe8f489ea4bac4694ef58f09bd95263b (diff) | |
download | llvm-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.cpp | 2 |
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(); |