From: whitequark Date: Mon, 8 Jul 2019 09:33:01 +0000 (+0000) Subject: back.rtlil: ignore empty source locations. X-Git-Tag: locally_working~97 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=710a8d0bc1537495a4d7b0f476db8901eaab853a;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)