Fix build on Linux

This commit is contained in:
2021-12-13 10:03:59 +00:00
parent 5b64f9670f
commit b5ef1aa7f0
4 changed files with 6 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <variant> #include <variant>

View File

@@ -3,6 +3,7 @@
// //
#include <array> #include <array>
#include <cassert>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <utility> #include <utility>
@@ -191,9 +192,8 @@ private:
void set(Operand const& dest, Int value) void set(Operand const& dest, Int value)
{ {
if (std::holds_alternative<Register>(dest)) { if (std::holds_alternative<Register>(dest)) {
registers_[// NOLINT(cppcoreguidelines-pro-bounds-constant-array-index) registers_[ // NOLINT(cppcoreguidelines-pro-bounds-constant-array-index)
static_cast<unsigned>(std::get<Register>(dest))] = static_cast<unsigned>(std::get<Register>(dest))] = value;
value;
} }
} }

View File

@@ -3,6 +3,7 @@
// //
#include <iostream> #include <iostream>
#include <numeric>
#include <regex> #include <regex>
#include <set> #include <set>
#include <string> #include <string>

View File

@@ -3,6 +3,7 @@
// //
#include <iostream> #include <iostream>
#include <numeric>
#include <regex> #include <regex>
#include <set> #include <set>
#include <string> #include <string>