yaxunl added a comment. AMDGPUTargetMachine::getNullPointerValue needs also be changed to match this, otherwise the static initializer will be incorrect for null pointer to private addr space. Do you plan to change that? https://reviews.llvm.org/D30316