[all-commits] [llvm/llvm-project] 57914f: [clang-tidy][NFC] Remove unnecessary nullptr check...

Mike Rice via All-commits all-commits at lists.llvm.org
Mon Mar 18 08:45:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57914f647e2551ea19758038345bb8bc2c4762c1
      https://github.com/llvm/llvm-project/commit/57914f647e2551ea19758038345bb8bc2c4762c1
  Author: Mike Rice <michael.p.rice at intel.com>
  Date:   2024-03-18 (Mon, 18 Mar 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp

  Log Message:
  -----------
  [clang-tidy][NFC] Remove unnecessary nullptr check on cast subexpr (#85473)

The value of SubExpr is not null since getSubExpr would assert in that
case. Remove the nullptr check. This avoids confusion since SubExpr is
used without check later in the function.



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