[all-commits] [llvm/llvm-project] 721b79: [llvm] prefer isa_and_nonnull over v && isa (#112541)

Mohammed Keyvanzadeh via All-commits all-commits at lists.llvm.org
Fri Oct 18 08:42:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 721b796809eca6e67dcefe45a3498764dda3117d
      https://github.com/llvm/llvm-project/commit/721b796809eca6e67dcefe45a3498764dda3117d
  Author: Mohammed Keyvanzadeh <mohammadkeyvanzade94 at gmail.com>
  Date:   2024-10-18 (Fri, 18 Oct 2024)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp

  Log Message:
  -----------
  [llvm] prefer isa_and_nonnull over v && isa (#112541)

Use `isa_and_nonnull<T>(v)` instead of `v && isa<T>(v)`, where `v` is
evaluated twice in the latter.



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