[clang] [webkit.RefCntblBaseVirtualDtor] ThreadSafeRefCounted still generates warnings (PR #108656)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 17 19:10:48 PDT 2024


================
@@ -84,13 +84,22 @@ class DerefFuncDeleteExprVisitor
     E = E->IgnoreParenCasts();
     if (auto *TempE = dyn_cast<CXXBindTemporaryExpr>(E))
       E = TempE->getSubExpr();
+    E = E->IgnoreParenCasts();
+    if (auto *Ref = dyn_cast<DeclRefExpr>(E)) {
+      if (auto *Decl = Ref->getDecl()) {
+        if (auto *VD = dyn_cast<VarDecl>(Decl))
----------------
rniwa wrote:

Oh, neat. Fixed.

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


More information about the cfe-commits mailing list