Fixed a bug don't generate RET instruction in ret

Fixed a bug don't generate RET instruction in return statement.