mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-07 18:46:29 +00:00
ir/opcodes: Implement IR::AreTypesCompatible
Type-checking is now occuring in more than one place.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user