[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:05 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)) {
----------------
kazutakahirata wrote:

Done.

https://github.com/llvm/llvm-project/pull/118421


More information about the cfe-commits mailing list