diff options
Diffstat (limited to 'contrib/llvm-project/llvm/utils/TableGen/DFAEmitter.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/utils/TableGen/DFAEmitter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm-project/llvm/utils/TableGen/DFAEmitter.cpp b/contrib/llvm-project/llvm/utils/TableGen/DFAEmitter.cpp index 7391f6845a4b..781cb0636fa1 100644 --- a/contrib/llvm-project/llvm/utils/TableGen/DFAEmitter.cpp +++ b/contrib/llvm-project/llvm/utils/TableGen/DFAEmitter.cpp @@ -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) {} @@ -346,8 +346,7 @@ Transition::Transition(Record *R, Automaton *Parent) { } else if (isa<IntRecTy>(SymbolV->getType())) { Actions.emplace_back(nullptr, R->getValueAsInt(A), ""); Types.emplace_back("unsigned"); - } else if (isa<StringRecTy>(SymbolV->getType()) || - isa<CodeRecTy>(SymbolV->getType())) { + } else if (isa<StringRecTy>(SymbolV->getType())) { Actions.emplace_back(nullptr, 0, std::string(R->getValueAsString(A))); Types.emplace_back("std::string"); } else { |