back.rtlil: ignore empty source locations.

This was a bug introduced during refactoring in 2492f490.
This commit is contained in:
whitequark 2019-07-08 09:33:01 +00:00
parent dac6275493
commit 710a8d0bc1

View file

@ -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)