[all-commits] [llvm/llvm-project] 657dc6: [AST] Migrate away from PointerUnion::dyn_cast (NF...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sat Feb 1 08:13:43 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 657dc6d05e8e20d5c3b41161ace7fba5d2cb6e26
      https://github.com/llvm/llvm-project/commit/657dc6d05e8e20d5c3b41161ace7fba5d2cb6e26
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-02-01 (Sat, 01 Feb 2025)

  Changed paths:
    M clang/lib/AST/TemplateName.cpp

  Log Message:
  -----------
  [AST] Migrate away from PointerUnion::dyn_cast (NFC) (#125335)

Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:

  // FIXME: Replace the uses of is(), get() and dyn_cast() with
  //        isa<T>, cast<T> and the llvm::dyn_cast<T>

Literal migration would result in dyn_cast_if_present (see the
definition of PointerUnion::dyn_cast), but this patch uses dyn_cast
because we expect InVectors.front() and P to be nonnull.



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