pskrgag wrote: > Looks correct to me. > Btw, do you think the invalidation should cause pointer escape? I have no opinion. I rarely use this api. Wdyt? Maybe @NagyDonat or @Szelethus have an opinion on that https://github.com/llvm/llvm-project/pull/109838