summaryrefslogtreecommitdiff
path: root/src/decompiler-ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/decompiler-ast.h')
-rw-r--r--src/decompiler-ast.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decompiler-ast.h b/src/decompiler-ast.h
index 584a8373..e5dd358e 100644
--- a/src/decompiler-ast.h
+++ b/src/decompiler-ast.h
@@ -226,6 +226,11 @@ struct AST {
mc.GetLabel(cast<BrIfExpr>(&e)->var)->label_type;
return;
}
+ case ExprType::BrTable: {
+ InsertNode(NodeType::Expr, ExprType::BrTable, &e, 1).u.lt =
+ mc.GetLabel(cast<BrTableExpr>(&e)->default_target)->label_type;
+ return;
+ }
default: {
InsertNode(NodeType::Expr, e.type(), &e, arity.nargs);
return;