[clang] [NFC][LifetimeSafety]: Track assignment history within a single CFGBlock (PR #196075)
Yuan Suo via cfe-commits
cfe-commits at lists.llvm.org
Thu May 7 22:51:32 PDT 2026
================
@@ -204,6 +205,26 @@ class LifetimeTestHelper {
return Runner.getAnalysis().getFactManager().getBlockContaining(P);
}
+ void trackAssignmentHistoryInOneBlock(
----------------
suoyuan666 wrote:
This is primarily because I wanted to avoid changing the parameters of my `trackAssignmentHistory` function. While it might be better if `trackAssignmentHistory` could accept a list of Facts, I specifically require a block.
I’ve now added `getBlockID` to `FactMgr` so I can get the required block directly.
https://github.com/llvm/llvm-project/pull/196075
More information about the cfe-commits
mailing list