[clang] [StaticAnalyzer] Migrate away from PointerUnion::{is,get} (NFC) (PR #118421)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 3 10:41:48 PST 2024
================
@@ -205,10 +205,10 @@ const NamedDecl *nonloc::PointerToMember::getDecl() const {
return nullptr;
const NamedDecl *ND = nullptr;
- if (PTMD.is<const NamedDecl *>())
- ND = PTMD.get<const NamedDecl *>();
+ if (isa<const NamedDecl *>(PTMD))
----------------
kazutakahirata wrote:
Done.
https://github.com/llvm/llvm-project/pull/118421
More information about the cfe-commits
mailing list