[clang] [WebKit Checkers] Allow a guardian CheckedPtr/CheckedRef (PR #110222)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 24 21:25:26 PDT 2024
================
@@ -56,7 +60,8 @@ bool tryToFindPtrOrigin(
if (StopAtFirstRefCountedObj) {
if (auto *ConversionFunc =
dyn_cast_or_null<FunctionDecl>(cast->getConversionFunction())) {
- if (isCtorOfRefCounted(ConversionFunc))
+ if (isCtorOfRefCounted(ConversionFunc) ||
+ isCtorOfCheckedPtr(ConversionFunc))
----------------
rniwa wrote:
Sure, we can do that.
https://github.com/llvm/llvm-project/pull/110222
More information about the cfe-commits
mailing list