2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

transforms/inline: do not writeback bool

This commit is contained in:
Sebastien Bourdeauducq 2014-12-02 15:53:41 +08:00
parent 649fedd656
commit cad5933709

View File

@ -453,7 +453,8 @@ def get_attr_writeback(attribute_namespace, rpc_mapper, loc_node):
if hasattr(attr_info.obj, attr):
val = getattr(attr_info.obj, attr)
if (not isinstance(val, int)
or isinstance(val, core_language.int64)):
or isinstance(val, core_language.int64)
or isinstance(val, bool)):
continue
#