Skip to content

Commit

Permalink
[Change] Local pointer mapGoto becomes **static constinit const** p…
Browse files Browse the repository at this point in the history
…ointer.
  • Loading branch information
buck-yeh committed Aug 10, 2024
1 parent 9159e67 commit ee1ea02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ParserGen/Output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ bool FC_Output::operator()(const char *outputPath, const char *tokenPath, int fl
" else if (input >= " ENCODED_TOKEN_LB_str ")\n"
" LOGIC_ERROR(\"Invalid input: state={} input={}\", (int)state, printToken(input));\n"
"\n"
" auto end = mapGoto + " <<m_state2next.size() <<";\n"
" static constinit const auto end = mapGoto + " <<m_state2next.size() <<";\n"
" auto found = std::lower_bound(mapGoto, end, state, [](const C_MapGoto &i, bux::T_StateID state_) {\n"
" return i.m_curState < state_;\n"
" });\n"
Expand Down

0 comments on commit ee1ea02

Please sign in to comment.