summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/function.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/function.py b/python/function.py
index 2616cba9..d2c677a7 100644
--- a/python/function.py
+++ b/python/function.py
@@ -3072,7 +3072,9 @@ class Function:
:return: List of ReferenceSource objects of the call sites to this function
:rtype: list(ReferenceSource)
"""
- return self.view.get_code_refs(self.start)
+ for site in self.view.get_code_refs(self.start):
+ if isinstance(site.llil, lowlevelil.LowLevelILCall):
+ yield site
@property
def workflow(self):