mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-19 06:49:38 +00:00
microinstruction: Identity's type depends on the type of its argument
This commit is contained in:
@@ -214,6 +214,12 @@ bool Inst::MayHaveSideEffects() const {
|
||||
|
||||
}
|
||||
|
||||
Type Inst::GetType() const {
|
||||
if (op == Opcode::Identity)
|
||||
return args[0].GetType();
|
||||
return GetTypeOf(op);
|
||||
}
|
||||
|
||||
Value Inst::GetArg(size_t index) const {
|
||||
DEBUG_ASSERT(index < GetNumArgsOf(op));
|
||||
DEBUG_ASSERT(!args[index].IsEmpty());
|
||||
|
||||
Reference in New Issue
Block a user