simplify python code

This commit is contained in:
Eitan Adler 2016-09-17 22:52:00 -07:00
parent a6d804ede8
commit 8de97dddfd

View File

@ -503,7 +503,7 @@ class GenericIntrinsic(object):
# must be a power of two # must be a power of two
assert width & (width - 1) == 0 assert width & (width - 1) == 0
def recur(processed, untouched): def recur(processed, untouched):
if untouched == []: if not untouched:
ret = processed[0] ret = processed[0]
args = processed[1:] args = processed[1:]
yield MonomorphicIntrinsic(self._platform, self.intrinsic, width, yield MonomorphicIntrinsic(self._platform, self.intrinsic, width,