From: whitequark Date: Mon, 8 Jul 2019 09:33:01 +0000 (+0000) Subject: back.rtlil: ignore empty source locations. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2a72034350edc6402b53fca8ab692a602463522;p=nmigen.git back.rtlil: ignore empty source locations. This was a bug introduced during refactoring in 2492f490. --- 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)