[clang] [LifetimeSafety] Add UseFacts for function arguments and assignment RHS (PR #180446)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 16 09:23:54 PST 2026
================
@@ -366,6 +366,7 @@ void FactsGenerator::VisitBinaryOperator(const BinaryOperator *BO) {
// result should have the same loans as the pointer operand.
if (BO->isCompoundAssignmentOp())
return;
+ handleUse(BO->getRHS());
----------------
Xazax-hun wrote:
I see, thanks for looking into the alternative approach! I agree, better to be incremental. I am fine landing this as is for now.
https://github.com/llvm/llvm-project/pull/180446
More information about the cfe-commits
mailing list