early-access version 2175

This commit is contained in:
pineappleEA
2021-11-01 23:24:37 +01:00
parent 03951516e2
commit b129443b21
4 changed files with 31 additions and 3 deletions

View File

@@ -265,6 +265,10 @@ Inst* Inst::GetAssociatedPseudoOperation(IR::Opcode opcode) {
}
IR::Type Inst::Type() const {
if (op == IR::Opcode::Phi) {
// The type of a phi node is stored in its flags
return Flags<IR::Type>();
}
return TypeOf(op);
}