[all-commits] [llvm/llvm-project] 5f0080: [lldb] Fix warnings about unused variables when bu...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Mon Aug 29 03:26:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f0080fbe810caae3750d159da62bac04dbd844f
      https://github.com/llvm/llvm-project/commit/5f0080fbe810caae3750d159da62bac04dbd844f
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M lldb/include/lldb/Utility/SharedCluster.h
    M lldb/source/Host/windows/MainLoopWindows.cpp

  Log Message:
  -----------
  [lldb] Fix warnings about unused variables when building without asserts. NFC.


  Commit: efc76a1ac5f910776091a48947ca1e90e9068845
      https://github.com/llvm/llvm-project/commit/efc76a1ac5f910776091a48947ca1e90e9068845
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/ExprEngine.cpp

  Log Message:
  -----------
  [analyzer] Silence GCC warnings about unused variables. NFC.

Use `isa<T>()` instead of `Type *Var = dyn_cast<T>()`
when the result of the cast isn't used.


Compare: https://github.com/llvm/llvm-project/compare/923f824fe104...efc76a1ac5f9


More information about the All-commits mailing list