diff --git a/python/function.py b/python/function.py index 83666ab9a..168c2ea94 100644 --- a/python/function.py +++ b/python/function.py @@ -3066,7 +3066,9 @@ def caller_sites(self) -> Generator['binaryview.ReferenceSource', None, None]: :return: List of ReferenceSource objects of the call sites to this function :rtype: list(ReferenceSource) """ - return self.view.get_code_refs(self.start) + for ref in self.view.get_code_refs(self.start): + if isinstance(ref.llil, lowlevelil.LowLevelILCall): + yield ref @property def workflow(self):