diff options
author | Kazu Hirata <kazu@google.com> | 2025-02-04 09:09:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-04 09:09:22 -0800 |
commit | 1fba1860984f4757d04922df63d5cc3d3dcf07be (patch) | |
tree | 8eb8ce132e2b58b03a8908a14f5fbfa32856cf8f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 63c59dda436fef7ceb4e3a21a95d306435e42720 (diff) | |
download | llvm-1fba1860984f4757d04922df63d5cc3d3dcf07be.zip llvm-1fba1860984f4757d04922df63d5cc3d3dcf07be.tar.gz llvm-1fba1860984f4757d04922df63d5cc3d3dcf07be.tar.bz2 |
[libclang] Migrate away from PointerUnion::dyn_cast (NFC) (#125631)
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 Storage to be nonnull. Note that if Storage were
null, dereferencing Ovl would trigger a segfault.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions