david-arm wrote: > Is it possible to add a quick test to make sure we don't hit the same thing again? Otherwise it LGTM Done! I've tried to add the simplest mir file test I could think of and verified it crashes without this patch. https://github.com/llvm/llvm-project/pull/97047