Veikka Tuominen 99826a2ba8 Sema: fix UAF in zirClosureGet
Previously if a decl failed its capture scope would be deallocated and
set to undefined which would then lead to invalid dereference in
`zirClosureGet`. To avoid this set the capture scope to a special
failed state and fail the current decl with dependency failure if
the failed state is encountered in `zirClosureGet`.

Closes #12433
Closes #12530
Closes #12593
2022-09-08 00:37:11 +03:00
..
2022-09-08 00:37:11 +03:00
2022-08-17 23:03:04 +03:00
2020-10-31 12:21:49 +02:00
2022-08-22 19:50:32 -04:00