forked from OSchip/llvm-project
[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:
parent
82edd428f1
commit
0841916e87
|
@ -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) {}
|
||||
|
|
Loading…
Reference in New Issue