MaheshRavishankar wrote: I think if we are changing the insertion point, we should add a `InsertionPoint::Guard` to reset to the insertion point before the call. This can just lead to spurious errors. https://github.com/llvm/llvm-project/pull/150819