diff --git a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp --- a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp +++ b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp @@ -1307,7 +1307,7 @@ return "u32"; } llvm_unreachable("unexpected type"); - return nullptr; + return {}; } void NVPTXAsmPrinter::emitPTXGlobalVariable(const GlobalVariable *GVar,