This commit is contained in:
whitequark 2018-04-28 01:03:08 +00:00 committed by Sebastien Bourdeauducq
parent 44e5d0804e
commit 04e8d379b8
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ class Stitcher:
def _function_loc(self, function):
if isinstance(function, SpecializedFunction):
function = function.host_function
if hasattr(function, 'artiq_embedded'):
if hasattr(function, 'artiq_embedded') and function.artiq_embedded.function:
function = function.artiq_embedded.function
filename = function.__code__.co_filename