fix issues and decompile racer-states (#924)

* fix issues and decompile racer-states

* type fix
This commit is contained in:
water111
2021-10-21 22:38:39 -04:00
committed by GitHub
parent 5649ca51c0
commit 44626cfedd
37 changed files with 6856 additions and 147 deletions
@@ -3223,6 +3223,10 @@ Form* try_rewrite_as_process_to_ppointer(CondNoElseElement* value,
auto repopped = stack.pop_reg(condition_var, {}, env, true);
if (!repopped) {
repopped = var_to_form(condition_var, pool);
} else {
if (!env.dts->ts.tc(TypeSpec("process"), env.get_variable_type(condition_var, true))) {
repopped = pool.form<CastElement>(TypeSpec("process"), repopped);
}
}
return pool.alloc_single_element_form<GenericElement>(