davemgreen wrote: Thanks for the suggestions. The IRBuilder method for building TypeSize was now one I knew about. I've tried to address your comments in the followup in #71699. https://github.com/llvm/llvm-project/pull/71565