[all-commits] [llvm/llvm-project] abba01: [ADT] Deprecate PointerUnion::{is, get} (NFC) (#122...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Mon Jan 13 11:38:00 PST 2025


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

  Changed paths:
    M llvm/include/llvm/ADT/PointerUnion.h

  Log Message:
  -----------
  [ADT] Deprecate PointerUnion::{is,get} (NFC) (#122623)

PointerUnion::{is,get} have 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>

This patch actually deprecates them with [[deprecated]].

I'm not touching PointerUnion::dyn_cast for now because we have not
migrated away from it yet.



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