Skip to content

Commit c3e87d2

Browse files
committed
Fixes
1 parent 0db01fe commit c3e87d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypyc/ir/ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ def sources(self) -> list[Value]:
12471247
return []
12481248

12491249
def set_sources(self, new: list[Value]) -> None:
1250-
(self.src,) = new
1250+
assert not new
12511251

12521252
def accept(self, visitor: OpVisitor[T]) -> T:
12531253
return visitor.visit_load_global(self)
@@ -1588,6 +1588,7 @@ def sources(self) -> list[Value]:
15881588
def set_sources(self, new: list[Value]) -> None:
15891589
if new:
15901590
assert isinstance(new[0], Register)
1591+
assert len(new) == 1
15911592
self.src = new[0]
15921593

15931594
def accept(self, visitor: OpVisitor[T]) -> T:

0 commit comments

Comments
 (0)