yshui wrote: Looks like I definitely don't understand what's going on. Instead let me try a more conservative fix. This should preserve what the current code is doing and just fix the assertion failure. https://github.com/llvm/llvm-project/pull/99514