Skip to content

Commit

Permalink
wip: clean up _compile_to_assembly
Browse files Browse the repository at this point in the history
use a class to carry around state
  • Loading branch information
charles-cooper committed Jan 22, 2022
1 parent fae4551 commit 2ea434d
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 128 deletions.
2 changes: 1 addition & 1 deletion vyper/codegen/stmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,5 +479,5 @@ def parse_body(code, context, ensure_terminated=False):
lll_node.append(parse_stmt(vy_ast.Return(value=None), context))

# force zerovalent, even last statement
lll_node.append("pass") # CMC 2022-01-16 is this necessary?
lll_node.append("pass") # CMC 2022-01-16 is this necessary?
return LLLnode.from_list(lll_node, pos=getpos(code[0]) if code else None)

0 comments on commit 2ea434d

Please sign in to comment.