[clang] [alpha.webkit.UncountedCallArgsChecker] Use canonical type (PR #109393)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 26 22:17:53 PDT 2024


================
@@ -102,12 +102,13 @@ class UncountedCallArgsChecker
         // if ((*P)->hasAttr<SafeRefCntblRawPtrAttr>())
         //  continue;
 
-        const auto *ArgType = (*P)->getType().getTypePtrOrNull();
-        if (!ArgType)
+        QualType ArgType = (*P)->getType().getCanonicalType();
+        const auto *TypePtr = ArgType.getTypePtrOrNull();
----------------
rniwa wrote:

Oh, I see. Let me make that change in a separate PR.

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


More information about the cfe-commits mailing list