[decompiler] maybe fix symbol decompile issue (#776)

* maybe fix symbol decompile issue

* try again on a label

* allow int to float on seconds
This commit is contained in:
water111
2021-08-21 10:20:55 -04:00
committed by GitHub
parent b8d55d9fa3
commit 30d1e1d6c9
4 changed files with 27 additions and 8 deletions
+1 -1
View File
@@ -1800,7 +1800,7 @@ void SimpleExpressionElement::update_from_stack_int_to_float(const Env& env,
auto fpr_convert_matcher =
Matcher::op(GenericOpMatcher::fixed(FixedOperatorKind::GPR_TO_FPR), {Matcher::any(0)});
auto type = env.get_types_before_op(var.idx()).get(var.reg()).typespec();
if (type == TypeSpec("int") || type == TypeSpec("uint")) {
if (type == TypeSpec("int") || type == TypeSpec("uint") || type == TypeSpec("seconds")) {
auto mr = match(fpr_convert_matcher, arg);
if (mr.matched) {
arg = mr.maps.forms.at(0);