diff --git a/src/xenia/cpu/backend/x64/x64_op.h b/src/xenia/cpu/backend/x64/x64_op.h index f71338304..0846f9255 100644 --- a/src/xenia/cpu/backend/x64/x64_op.h +++ b/src/xenia/cpu/backend/x64/x64_op.h @@ -105,8 +105,7 @@ struct Op : OpBase { struct VoidOp : Op { protected: - template - friend struct Op; + friend struct Op; template friend struct I; void Load(const Instr::Op& op) {} @@ -116,8 +115,7 @@ struct OffsetOp : Op { uint64_t value; protected: - template - friend struct Op; + friend struct Op; template friend struct I; void Load(const Instr::Op& op) { this->value = op.offset; } @@ -127,8 +125,7 @@ struct SymbolOp : Op { Function* value; protected: - template - friend struct Op; + friend struct Op; template friend struct I; bool Load(const Instr::Op& op) { @@ -141,8 +138,7 @@ struct LabelOp : Op { hir::Label* value; protected: - template - friend struct Op; + friend struct Op; template friend struct I; void Load(const Instr::Op& op) { this->value = op.label; } diff --git a/src/xenia/cpu/export_resolver.h b/src/xenia/cpu/export_resolver.h index 5b1bdc1f8..216f47548 100644 --- a/src/xenia/cpu/export_resolver.h +++ b/src/xenia/cpu/export_resolver.h @@ -39,7 +39,7 @@ enum class ExportCategory : uint8_t { }; struct ExportTag { - typedef uint32_t type; + using type = uint32_t; // packed like so: // ll...... cccccccc ........ ..bihssi