[all-commits] [llvm/llvm-project] 0af2e7: [lldb] Fix redundant condition in compression type...

Shivam Gupta via All-commits all-commits at lists.llvm.org
Mon Jun 10 01:24:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0af2e75f8c688cc6fb7123c969c8edfa98a003fa
      https://github.com/llvm/llvm-project/commit/0af2e75f8c688cc6fb7123c969c8edfa98a003fa
  Author: Shivam Gupta <shivam98.tkg at gmail.com>
  Date:   2024-06-10 (Mon, 10 Jun 2024)

  Changed paths:
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

  Log Message:
  -----------
  [lldb] Fix redundant condition in compression type check (NFC) (#94841)

The `else if` condition for checking `m_compression_type` is redundant
as it matches with a previous `if` condition, making the expression
always false. Reported by cppcheck as a possible cut-and-paste error.

Caught by cppcheck -

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:543:35:
style: Expression is always false because 'else if' condition matches
previous condition at line 535. [multiCondition]

Fix #91222



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list