================
@@ -70,6 +70,8 @@ bool tryToFindPtrOrigin(
           if (isCtorOfSafePtr(ConversionFunc))
             return callback(E, true);
         }
+        if (isa<CXXFunctionalCastExpr>(E) && isSafePtrType(cast->getType()))
+          return callback(E, true);
----------------
rniwa wrote:

We typically don't pass arguments as RefPtr / Ref except a few cases where we 
pass in as RefPtr&& / Ref&&. I guess we can add a test for it though.

https://github.com/llvm/llvm-project/pull/130911
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to