diff --git a/tests/A64/inst_gen.h b/tests/A64/inst_gen.h index 64316d84..b3a9928f 100644 --- a/tests/A64/inst_gen.h +++ b/tests/A64/inst_gen.h @@ -4,6 +4,7 @@ * General Public License version 2 or any later version. */ +#include #include #include @@ -23,10 +24,8 @@ public: } static bool IsInvalidInstruction(u32 inst) { - for (const auto& invalid : invalid_instructions) - if (invalid.Match(inst)) - return true; - return false; + return std::any_of(invalid_instructions.begin(), invalid_instructions.end(), + [inst](const auto& invalid) { return invalid.Match(inst); }); } private: