Fixes #34642 but, notably, doesn't actually make the assignment into a working declaration. It just fixes the crash.