[TableGen] Do not construct 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.

Differential Revision: https://reviews.llvm.org/D87185
This commit is contained in:
Yuriy Chernyshov 2020-09-10 16:40:40 +02:00 committed by Nikita Popov
parent 82edd428f1
commit 0841916e87
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ namespace {
struct Action {
Record *R = nullptr;
unsigned I = 0;
std::string S = nullptr;
std::string S;
Action() = default;
Action(Record *R, unsigned I, std::string S) : R(R), I(I), S(S) {}