https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/93403
None >From 4f5b6ac39e709bddf7f1ced314ebb1984a1942de Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa <rn...@apple.com> Date: Sun, 26 May 2024 00:34:15 -0700 Subject: [PATCH] Fix the warning in RefCntblBaseVirtualDtorChecker.cpp:61 --- .../Checkers/WebKit/RefCntblBaseVirtualDtorChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/StaticAnalyzer/Checkers/WebKit/RefCntblBaseVirtualDtorChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/WebKit/RefCntblBaseVirtualDtorChecker.cpp index 26879f2f87c8b..9df108e28ecdb 100644 --- a/clang/lib/StaticAnalyzer/Checkers/WebKit/RefCntblBaseVirtualDtorChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/WebKit/RefCntblBaseVirtualDtorChecker.cpp @@ -58,7 +58,7 @@ class DerefFuncDeleteExprVisitor std::optional<bool> HasSpecializedDelete(CXXMethodDecl *Decl) { if (auto *Body = Decl->getBody()) return VisitBody(Body); - if (auto *Tmpl = Decl->getTemplateInstantiationPattern()) + if (Decl->getTemplateInstantiationPattern()) return std::nullopt; // Indeterminate. There was no concrete instance. return false; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits