If cv2T2 has an address space and we are creating a qualified type cv1T4 adding new addr space qualifier an ICE is triggered.
To avoid this ICE we first create a duplicate of cv2T2 omitting its original addr space. Then we can safely use it to create combined type to use in the conversion.
This is the last patch that allows fixing PR38614!
Qualifiers::addQualifiers should let you do this in a single step. Also, you seem to be modifying T2Quals here after the last use of it.