Fix compiler crashes and improve return statements. (#652)

* fix a few small bugs

* fi

* fix merge conflict
This commit is contained in:
water111
2021-06-30 00:11:46 -04:00
committed by GitHub
parent 7e7f10ed3a
commit 322a4ed9b2
16 changed files with 332 additions and 293 deletions
+2
View File
@@ -724,6 +724,8 @@ goos::Object decompile_boxed_array(const DecompilerLabel& label,
} else if (word.kind == LinkedWord::PTR) {
result.push_back(
decompile_at_label(content_type, labels.at(word.label_id), labels, words, ts));
} else if (word.kind == LinkedWord::SYM_PTR) {
result.push_back(pretty_print::to_symbol(fmt::format("'{}", word.symbol_name)));
} else {
throw std::runtime_error(
fmt::format("Unknown content type in boxed array of references, word idx {}",