================
@@ -352,9 +353,12 @@ class RawPtrRefLocalVarsChecker
           return Model->isSafeDecl(D, BR->getSourceManager());
         },
         [&](const clang::Expr *InitArgOrigin, bool IsSafe) {
-          if (!InitArgOrigin || IsSafe)
+          if (!InitArgOrigin)
             return true;
 
+          if (IsSafe)
+            return !CrossedShortLivedTemporary;
----------------
geoffreygaren wrote:

Oh yeah, that's way better. And it should fix your other concern too.

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

Reply via email to