From 9492464ed92517021b53bd1fe3bed06ac8d9f657 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 18 Mar 2016 02:15:36 +0000 Subject: [PATCH] Commit missing parts of 78fa5be. --- artiq/compiler/embedding.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/compiler/embedding.py b/artiq/compiler/embedding.py index 664b97a0b..58f112f98 100644 --- a/artiq/compiler/embedding.py +++ b/artiq/compiler/embedding.py @@ -754,7 +754,8 @@ class Stitcher: notes=[note]) self.engine.process(diag) - if self.dmgr.get(function.artiq_embedded.core_name) != self.core: + core_name = function.artiq_embedded.core_name + if core_name is not None and self.dmgr.get(core_name) != self.core: note = diagnostic.Diagnostic("note", "called from this function", {}, loc)