summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx7
1 files changed, 2 insertions, 5 deletions
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;