> How do we access ReplaceNodeWith in TLI ? I hadn't understood you wanted to custom lower: I assumed you wanted to teach legalize types what to do if the pointer type is illegal, in the generic code. Indeed if you want to custom lower then there isn't much choice. Ciao, Duncan.