================
@@ -89,6 +89,11 @@ struct GuardianVisitor : DynamicRecursiveASTVisitor {
       return false;
     if (isPtrConversion(Callee))
       return true;
+    if (auto *Method = dyn_cast<CXXMethodDecl>(Callee)) {
+      auto IsGetter = isGetterOfSafePtr(Method);
+      if (IsGetter && *IsGetter)
----------------
steakhal wrote:

```suggestion
      if (isGetterOfSafePtr(Method).value_or(false))
```

https://github.com/llvm/llvm-project/pull/219647
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to