[clang] [WebKit Checkers] Trace through temporaries in tryToFindPtrOrigin (PR #224877)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 20 14:31:32 PDT 2026
================
@@ -73,12 +81,17 @@ bool tryToFindPtrOrigin(
continue;
}
if (auto *Expr = dyn_cast<ConditionalOperator>(E)) {
- return tryToFindPtrOrigin(Expr->getTrueExpr(), StopAtFirstRefCountedObj,
- isSafePtr, isSafePtrType, isSafeGlobalDecl,
- callback) &&
+ const bool ShortLivedOnEntry =
+ CrossedShortLivedTemporary && *CrossedShortLivedTemporary;
+ bool TrueResult = tryToFindPtrOrigin(
+ Expr->getTrueExpr(), StopAtFirstRefCountedObj, isSafePtr,
+ isSafePtrType, isSafeGlobalDecl, callback, CrossedShortLivedTemporary);
+ if (CrossedShortLivedTemporary)
+ *CrossedShortLivedTemporary = ShortLivedOnEntry;
----------------
geoffreygaren wrote:
Removed in latest iteration. Function argument syntax clarifies what was going on.
https://github.com/llvm/llvm-project/pull/224877
More information about the cfe-commits
mailing list