inst_gen: Make invalid_instructions a static inline variable

This commit is contained in:
Lioncash 2018-02-04 14:35:22 -05:00 committed by MerryMage
parent f96e83c486
commit 12c6f841c2
2 changed files with 1 additions and 3 deletions

View file

@ -36,5 +36,3 @@ u32 InstructionGenerator::Generate() const {
} while (IsInvalidInstruction(inst)); } while (IsInvalidInstruction(inst));
return inst; return inst;
} }
std::vector<InstructionGenerator> InstructionGenerator::invalid_instructions;

View file

@ -30,7 +30,7 @@ public:
} }
private: private:
static std::vector<InstructionGenerator> invalid_instructions; static inline std::vector<InstructionGenerator> invalid_instructions;
u32 bits = 0; u32 bits = 0;
u32 mask = 0; u32 mask = 0;