[Decomp] Fix bitfields in dma-bucket (#367)

* fix bitfields in dma-bucket

* fix dma-bucket
This commit is contained in:
water111
2021-04-18 12:08:08 -04:00
committed by GitHub
parent 9867155e7c
commit 7737817ac7
16 changed files with 319 additions and 127 deletions
+7
View File
@@ -257,6 +257,13 @@ bool is_op_in_place(SetVarElement* elt,
return false;
}
// also check with casts. This avoid something like
// (set! x (+ (the <blah> x) 1))
auto src_var_cast = env.get_variable_name_with_cast(*first);
if (src_var_cast.print() != dst_var) {
return false;
}
*val_out = result.maps.forms.at(1);
*base_out = first.value();
return true;