[clang] [LifetimeSafety] Revamp how accesses and uses are handled (PR #225799)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 06:04:34 PDT 2026
================
@@ -351,7 +355,7 @@ void FactsGenerator::VisitCastExpr(const CastExpr *CE) {
// lvalue level first. A bit-cast that materializes a pointer from a
// non-pointer representation has no matching source origin and is
// untracked.
- OriginList *RVSrc = getRValueOrigins(SubExpr, Src);
+ OriginList *RVSrc = Loads ? Loaded : Src;
----------------
Xazax-hun wrote:
Simplified the logic after inlining into the cases.
https://github.com/llvm/llvm-project/pull/225799
More information about the cfe-commits
mailing list