[compiler/decompiler] Take the address of a variable (#554)

* support taking the address of variables

* partially working stack variables

* implement type cast stuff

* remove final
This commit is contained in:
water111
2021-06-04 13:43:19 -04:00
committed by GitHub
parent 9b905f903c
commit 542edfb164
38 changed files with 376 additions and 185 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ FormElement* fix_up_vector_inline_zero(LetElement* in, const Env& env, FormPool&
}
Form* src = in->entries().at(0).src;
auto src_as_stackvar = src->try_as_element<StackVarDefElement>();
auto src_as_stackvar = src->try_as_element<StackStructureDefElement>();
if (!src_as_stackvar) {
return nullptr;
}