https://github.com/DavidSpickett approved this pull request. Haven't seen the sources that say 0 should work, but resetting to the actual height is the least surprising path so this LGTM. https://github.com/llvm/llvm-project/pull/169127