From 710a8d0bc1537495a4d7b0f476db8901eaab853a Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 8 Jul 2019 09:33:01 +0000 Subject: [PATCH] back.rtlil: ignore empty source locations. This was a bug introduced during refactoring in 2492f490. --- nmigen/back/rtlil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/back/rtlil.py b/nmigen/back/rtlil.py index fc3bf1c..8c042c6 100644 --- a/nmigen/back/rtlil.py +++ b/nmigen/back/rtlil.py @@ -66,7 +66,7 @@ class _AttrBuilder: def _attributes(self, attrs, *, src=None, **kwargs): for name, value in attrs.items(): self._attribute(name, value, **kwargs) - if src is not None: + if src: self._attribute("src", src, **kwargs) -- 2.30.2