[all-commits] [llvm/llvm-project] d2c7ca: [Sema] Migrate away from PointerUnion::dyn_cast (N...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sat Jan 25 15:25:39 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d2c7cabe0453d6a6d03c15b7ae1800b53de9e182
https://github.com/llvm/llvm-project/commit/d2c7cabe0453d6a6d03c15b7ae1800b53de9e182
Author: Kazu Hirata <kazu at google.com>
Date: 2025-01-25 (Sat, 25 Jan 2025)
Changed paths:
M clang/lib/Sema/JumpDiagnostics.cpp
Log Message:
-----------
[Sema] Migrate away from PointerUnion::dyn_cast (NFC) (#124434)
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 EWC->getObject(i) 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