[all-commits] [llvm/llvm-project] 8e4c5c: [Serialization] Migrate away from PointerUnion::dy...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Jan 29 07:49:10 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e4c5cb0063e1c73a3f93073f5f85c8ec598613f
      https://github.com/llvm/llvm-project/commit/8e4c5cb0063e1c73a3f93073f5f85c8ec598613f
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-01-29 (Wed, 29 Jan 2025)

  Changed paths:
    M clang/lib/Serialization/ASTWriterStmt.cpp

  Log Message:
  -----------
  [Serialization] Migrate away from PointerUnion::dyn_cast (NFC) (#124884)

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 DetailRecord 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