summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx
index 0d430ea3..da647722 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -150,6 +150,7 @@ struct c_unparser: public unparser, public visitor
void visit_print_format (print_format* e);
void visit_stat_op (stat_op* e);
void visit_hist_op (hist_op* e);
+ void visit_cast_op (cast_op* e);
};
// A shadow visitor, meant to generate temporary variable declarations
@@ -3488,6 +3489,13 @@ c_unparser::visit_target_symbol (target_symbol* e)
void
+c_unparser::visit_cast_op (cast_op* e)
+{
+ throw semantic_error("cannot translate general cast expression", e->tok);
+}
+
+
+void
c_tmpcounter::load_map_indices(arrayindex *e)
{
symbol *array;