Merge pull request #83962 from nate-chandler/cherrypick/release/6.2/rdar158149082

6.2: [AllocBoxToStack] Don't destroy in dead-ends.
This commit is contained in:
nate-chandler
2025-08-28 14:26:38 -07:00
committed by GitHub
7 changed files with 473 additions and 25 deletions

View File

@@ -1676,7 +1676,8 @@ public:
}
/// Verifies the lifetime of memory locations in the function.
void verifyMemoryLifetime(CalleeCache *calleeCache);
void verifyMemoryLifetime(CalleeCache *calleeCache,
DeadEndBlocks *deadEndBlocks);
/// Verifies ownership of the function.
/// Since we don't have complete lifetimes everywhere, computes DeadEndBlocks