summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/function.py b/python/function.py
index c8acf287..4f01fc29 100644
--- a/python/function.py
+++ b/python/function.py
@@ -237,7 +237,7 @@ class BasicBlockList:
return self._count.value
def __iter__(self):
- return self
+ return BasicBlockList(self._function)
def __next__(self) -> 'basicblock.BasicBlock':
if self._n >= len(self):