The recent commit 22ca38da25e19a7c5fcfeb3f22159aba92ec381e introduces the ability to analyze ranges for heap allocations.
In some cases, like the one in the test, the range is empty as ConstantRange represents an half-open range on the upper side (in the very specific case, [1;1)). Detect this case, similarly to other ranges transformations in SCEV, rather than crashing.
It would be better to use ConstantRange::getNonEmpty() here.