From 22f4623195facb4cbc1b50c45c0bd689f6958a9d Mon Sep 17 00:00:00 2001 From: fche Date: Sun, 5 Jun 2005 16:41:48 +0000 Subject: next/return symmetry improvement --- elaborate.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'elaborate.cxx') diff --git a/elaborate.cxx b/elaborate.cxx index f3edd81b..309b4115 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -1047,12 +1047,9 @@ typeresolution_info::visit_return_statement (return_statement* e) // This is like symbol, where the referent is // the return value of the function. - // XXX: need control flow semantic checking; until then: + // translation pass will print error if (current_function == 0) - { - unresolved (e->tok); - return; - } + return; exp_type& e_type = current_function->type; t = current_function->type; -- cgit