mirror of
https://github.com/azahar-emu/dynarmic.git
synced 2026-04-22 21:05:29 +02:00
value: Add GetInstRecursive
This commit is contained in:
@@ -110,6 +110,13 @@ Inst* Value::GetInst() const {
|
||||
return inner.inst;
|
||||
}
|
||||
|
||||
Inst* Value::GetInstRecursive() const {
|
||||
ASSERT(type == Type::Opaque);
|
||||
if (IsIdentity())
|
||||
return inner.inst->GetArg(0).GetInstRecursive();
|
||||
return inner.inst;
|
||||
}
|
||||
|
||||
bool Value::GetU1() const {
|
||||
if (IsIdentity())
|
||||
return inner.inst->GetArg(0).GetU1();
|
||||
|
||||
Reference in New Issue
Block a user