bcardosolopes wrote: Applied reviews. @erichkeane refactored it more in aa0b2b0, while at it found more opportunities for sharing between UnionType/RecordType, but they are noisy so I'm adding them in a follow up PR. https://github.com/llvm/llvm-project/pull/247883