We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 211fb11 commit c9e01e1Copy full SHA for c9e01e1
core/InstGenerator.cpp
@@ -82,11 +82,12 @@ namespace olympia
82
}
83
else
84
{
85
- if (const auto it = jinst.find("mnemonic"); it == jinst.end())
+ const auto mit = jinst.find("mnemonic");
86
+ if (mit == jinst.end())
87
88
throw sparta::SpartaException() << "Missing mnemonic at " << curr_inst_index_;
89
- const std::string mnemonic = boost::json::serialize(jinst.at("mnemonic"));
90
+ const std::string mnemonic = boost::json::value_to<std::string>(mit->value());
91
92
auto addElement = [&jinst](mavis::OperandInfo & operands, const std::string & key,
93
const mavis::InstMetaData::OperandFieldID operand_field_id,
0 commit comments