> Currently a pointer is passed, which is confusing and requires run-time asserts to avoid nullptr dereference.
>
> All call sites can pass a reference, so do that. Also mark it LIFETIMEBOUND to avoid call sites passing a temporary. Also, unrelated cleanup in touched lines.
This is a backport of core#25040