Do not construct std::string from nullptr
authorYuriy Chernyshov <georgthegreat@gmail.com>
Thu, 5 Nov 2020 20:10:38 +0000 (12:10 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 5 Nov 2020 23:23:26 +0000 (15:23 -0800)
commit99e64623ec9b31def9375753491cc6093c831809
treeb1f2c13599ddcff2d4b12fabe407bc819d874b24
parentdefe11866a326491ee9767f84bb3f70cfc4f4bcb
Do not construct std::string from nullptr

While I am trying to forbid such usages systematically in https://reviews.llvm.org/D79427 / P2166R0 to C++ standard, this PR fixes this (definitelly incorrect) usage in llvm.

This code is unreachable, so it could not cause any harm

Reviewed By: nikic, dblaikie

Differential Revision: https://reviews.llvm.org/D87697
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp