[all-commits] [llvm/llvm-project] f470ab: [lldb][nfc] Remove redundant nullptr check

Felipe de Azevedo Piovezan via All-commits all-commits at lists.llvm.org
Mon Jul 3 14:12:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f470ab734c9bae9464faf6cff6530beb32ea44ba
      https://github.com/llvm/llvm-project/commit/f470ab734c9bae9464faf6cff6530beb32ea44ba
  Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp

  Log Message:
  -----------
  [lldb][nfc] Remove redundant nullptr check

The make_shared function never returns a nullptr, as such the test for nullptr
is not needed. We also move the empty string check earlier in the if
("oso_object"), as this is cheaper than loading the object file.

Differential Revision: https://reviews.llvm.org/D154365




More information about the All-commits mailing list