[clang] [LifetimeSafety] Handle escape through assignment to global storage (PR #181646)

Abhinav Pradeep via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 3 02:48:22 PST 2026


================
@@ -469,11 +470,19 @@ void FactsGenerator::handleFullExprCleanup(
 }
 
 void FactsGenerator::handleExitBlock() {
----------------
AbhinavPradeep wrote:

Ah right so more like the first option I listed then? Side effects of a function call here could lead to dangling of the global, so we could report this in the strict setting?

https://github.com/llvm/llvm-project/pull/181646


More information about the cfe-commits mailing list