llvm-project
4a428b15 - [CIR] Register a static's extended temporaries where they are built (#229896)

Commit
43 days ago
[CIR] Register a static's extended temporaries where they are built (#229896) Temporaries whose lifetime a static extends were all destroyed together, in one batch registered after the static's whole initializer ran. Now each one is registered for destruction right after it is built, the way classic codegen does it. That fixes a verifier failure when a static extends more than one temporary, a variable's own destructor going missing, objects destroyed in the wrong order, and a temporary destroyed even when it was never built. Assisted-by: Claude Code / claude-opus-5-5
Author
Parents
Loading