ir/opcodes: Implement IR::AreTypesCompatible

Type-checking is now occuring in more than one place.
This commit is contained in:
MerryMage
2016-08-19 01:34:14 +01:00
parent 9782e7da3f
commit 192a0029be
5 changed files with 10 additions and 3 deletions

View File

@@ -56,5 +56,9 @@ const char* GetNameOf(Type type) {
return names.at(static_cast<size_t>(type));
}
bool AreTypesCompatible(Type t1, Type t2) {
return t1 == t2 || t1 == Type::Opaque || t2 == Type::Opaque;
}
} // namespace IR
} // namespace Dynarmic