mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-26 15:11:00 +00:00
[clang][cli] Store unsigned instead of OptSpecifier in table
This fixes some buildbot failures with ambiguous call to OptSpecifier constructor.
This commit is contained in:
parent
7369bfb8ab
commit
396d6a3220
@ -2158,7 +2158,7 @@ static bool parseTestModuleFileExtensionArg(StringRef Arg,
|
||||
/// intentionally missing, as this case is handled separately from other
|
||||
/// frontend options.
|
||||
static const auto &getFrontendActionTable() {
|
||||
static const std::pair<frontend::ActionKind, OptSpecifier> Table[] = {
|
||||
static const std::pair<frontend::ActionKind, unsigned> Table[] = {
|
||||
{frontend::ASTDeclList, OPT_ast_list},
|
||||
|
||||
{frontend::ASTDump, OPT_ast_dump_all_EQ},
|
||||
@ -2213,7 +2213,7 @@ static const auto &getFrontendActionTable() {
|
||||
/// Maps command line option to frontend action.
|
||||
static Optional<frontend::ActionKind> getFrontendAction(OptSpecifier &Opt) {
|
||||
for (const auto &ActionOpt : getFrontendActionTable())
|
||||
if (ActionOpt.second == Opt)
|
||||
if (ActionOpt.second == Opt.getID())
|
||||
return ActionOpt.first;
|
||||
|
||||
return None;
|
||||
|
Loading…
Reference in New Issue
Block a user