[clang] [StaticAnalyzer] Migrate away from PointerUnion::{is,get} (NFC) (PR #118421)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 2 23:17:23 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))
----------------
steakhal wrote:
I think we should use dyn_cast here.
https://github.com/llvm/llvm-project/pull/118421
More information about the cfe-commits
mailing list