Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Nov 22, 2024
1 parent c9f2a98 commit 0d22091
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vyper/venom/ir_node_to_venom.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,14 +532,18 @@ def emit_body_blocks():
if ir.value.startswith("$alloca"):
alloca = ir.passthrough_metadata["alloca"]
if alloca._id not in _alloca_table:
ptr = fn.get_basic_block().append_instruction("alloca", alloca.offset, alloca.size, alloca._id)
ptr = fn.get_basic_block().append_instruction(
"alloca", alloca.offset, alloca.size, alloca._id
)
_alloca_table[alloca._id] = ptr
return _alloca_table[alloca._id]

elif ir.value.startswith("$palloca"):
alloca = ir.passthrough_metadata["alloca"]
if alloca._id not in _alloca_table:
ptr = fn.get_basic_block().append_instruction("palloca", alloca.offset, alloca.size, alloca._id)
ptr = fn.get_basic_block().append_instruction(
"palloca", alloca.offset, alloca.size, alloca._id
)
_alloca_table[alloca._id] = ptr
return _alloca_table[alloca._id]

Expand Down

0 comments on commit 0d22091

Please sign in to comment.