diff options
author | fche <fche> | 2005-06-05 16:41:48 +0000 |
---|---|---|
committer | fche <fche> | 2005-06-05 16:41:48 +0000 |
commit | 22f4623195facb4cbc1b50c45c0bd689f6958a9d (patch) | |
tree | 1ee468efab2a3f1f1a18cfb02c0bd5c31e541c57 /elaborate.cxx | |
parent | f3c26ea55e2f2c1d222312bf75035359c439ed21 (diff) | |
download | systemtap-steved-22f4623195facb4cbc1b50c45c0bd689f6958a9d.tar.gz systemtap-steved-22f4623195facb4cbc1b50c45c0bd689f6958a9d.tar.xz systemtap-steved-22f4623195facb4cbc1b50c45c0bd689f6958a9d.zip |
next/return symmetry improvement
Diffstat (limited to 'elaborate.cxx')
-rw-r--r-- | elaborate.cxx | 7 |
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; |