parser: remove an unnecessary line

pull/2293/head
Alexander Medvednikov 2019-10-11 03:00:06 +03:00
parent e7e0514379
commit 25ef0ee593
1 changed files with 0 additions and 1 deletions

View File

@ -3913,7 +3913,6 @@ fn (p mut Parser) return_st() {
tmp := p.get_tmp()
ret := p.cgen.cur_line.right(ph)
typ := expr_type.replace('Option_', '')
p.cgen.cur_line = '$expr_type $tmp = OPTION_CAST($typ)($ret);'
p.cgen.resetln('$expr_type $tmp = OPTION_CAST($expr_type)($ret);')
p.gen('return opt_ok(&$tmp, sizeof($typ))')
}