LGTM
Good catch.
Is it possible to add a test for this?
In D156974#4558402, @craig.topper wrote: Is it possible to add a test for this?
Test added in 40f3708205430a7a562d58f48fd9c294fb80d5e0