diff options
author | Kazu Hirata <kazu@google.com> | 2025-02-04 09:09:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-04 09:09:01 -0800 |
commit | 63c59dda436fef7ceb4e3a21a95d306435e42720 (patch) | |
tree | 50b015d0985284a967b1002ea13a97fae37908f2 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 97f6e533865c66ea08840be78154099180293094 (diff) | |
download | llvm-63c59dda436fef7ceb4e3a21a95d306435e42720.zip llvm-63c59dda436fef7ceb4e3a21a95d306435e42720.tar.gz llvm-63c59dda436fef7ceb4e3a21a95d306435e42720.tar.bz2 |
[Sema] Migrate away from PointerUnion::dyn_cast (NFC) (#125630)
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 *Found to be nonnull. Note that if *Found were
null, cast<VarDecl>(TransformedDecl) would trigger an assertion error.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions