Skip to content

Commit

Permalink
fix return buffer for private returns
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jan 8, 2022
1 parent 613afd9 commit 387eb4d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions vyper/codegen/return_.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ def finalize(fill_return_buffer):

if context.is_internal:
dst = LLLnode.from_list(["return_buffer"], typ=context.return_type, location="memory")
fill_return_buffer = [
"with",
dst,
"pass", # return_buffer is passed on the stack by caller
make_setter(dst, lll_val, context, pos=_pos),
]
fill_return_buffer = make_setter(dst, lll_val, context, pos=_pos)

return finalize(fill_return_buffer)

Expand Down

0 comments on commit 387eb4d

Please sign in to comment.