Skip to content

Commit

Permalink
revert change that slipped in from another branch
Browse files Browse the repository at this point in the history
  • Loading branch information
harkal committed Sep 18, 2024
1 parent f4c7ac5 commit cc50efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vyper/venom/passes/simplify_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ class SimplifyCFGPass(IRPass):
def _merge_blocks(self, a: IRBasicBlock, b: IRBasicBlock):
a.instructions.pop()
for inst in b.instructions:
inst.parent = a

assert inst.opcode != "phi", "Not implemented yet"
if inst.opcode == "phi":
a.instructions.insert(0, inst)
else:
inst.parent = a
a.instructions.append(inst)

# Update CFG
Expand Down

0 comments on commit cc50efe

Please sign in to comment.