[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
================
@@ -211,8 +211,8 @@ class MallocSizeofChecker : public Checker<check::ASTCodeBody> {
continue;
const TypeSourceInfo *TSI = nullptr;
- if (CallRec.CastedExprParent.is<const VarDecl *>()) {
- TSI = CallRec.CastedExprParent.get<const VarDecl *>()
+ if (isa<const VarDecl *>(CallRec.CastedExprParent)) {
----------------
steakhal wrote:
We could use dyn_cast here I think.
https://github.com/llvm/llvm-project/pull/118421
More information about the cfe-commits
mailing list