[all-commits] [llvm/llvm-project] 2f8238: [llvm] Migrate away from PointerUnion::{is, get} (N...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Thu Dec 12 07:55:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f8238f849c4836b333082f387d91408234ea73b
      https://github.com/llvm/llvm-project/commit/2f8238f849c4836b333082f387d91408234ea73b
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-12-12 (Thu, 12 Dec 2024)

  Changed paths:
    M llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/unittests/IR/IRBuilderTest.cpp

  Log Message:
  -----------
  [llvm] Migrate away from PointerUnion::{is,get} (NFC) (#119679)

Note that 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>

I'm not touching PointerUnion::dyn_cast for now because it's a bit
complicated; we could blindly migrate it to dyn_cast_if_present, but
we should probably use dyn_cast when the operand is known to be
non-null.



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