https://github.com/makslevental approved this pull request. LGTM. I'm not sure that the test actually tests the intent (_reusing_ `AsmState`) but I don't think it matters (it sufficiently exercises the code). https://github.com/llvm/llvm-project/pull/72064