From 8de97dddfdb9ef6e84684235912476de30e34903 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sat, 17 Sep 2016 22:52:00 -0700 Subject: [PATCH] simplify python code --- src/etc/platform-intrinsics/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/platform-intrinsics/generator.py b/src/etc/platform-intrinsics/generator.py index a4a91170efb..f835345ecbd 100644 --- a/src/etc/platform-intrinsics/generator.py +++ b/src/etc/platform-intrinsics/generator.py @@ -503,7 +503,7 @@ class GenericIntrinsic(object): # must be a power of two assert width & (width - 1) == 0 def recur(processed, untouched): - if untouched == []: + if not untouched: ret = processed[0] args = processed[1:] yield MonomorphicIntrinsic(self._platform, self.intrinsic, width,