[PATCH] D87185: Do not construct string from nullptr
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 07:42:39 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0841916e87a3: [TableGen] Do not construct string from nullptr (authored by georgthegreat, committed by nikic).
Changed prior to commit:
https://reviews.llvm.org/D87185?vs=290077&id=290970#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87185/new/
https://reviews.llvm.org/D87185
Files:
llvm/utils/TableGen/DFAEmitter.cpp
Index: llvm/utils/TableGen/DFAEmitter.cpp
===================================================================
--- llvm/utils/TableGen/DFAEmitter.cpp
+++ llvm/utils/TableGen/DFAEmitter.cpp
@@ -174,7 +174,7 @@
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) {}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87185.290970.patch
Type: text/x-patch
Size: 409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200910/373c1888/attachment.bin>
More information about the llvm-commits
mailing list