Replaced RTLIL::Const::str with generic decoder method
[yosys.git] / passes / fsm / fsm_export.cc
index dc9ec2b06b08dc2cde8c1befec9e5fb144b816eb..cc328ce34e81b9bfb5dd3afd5813c945c8344947 100644 (file)
@@ -60,8 +60,8 @@ void write_kiss2(struct RTLIL::Module *module, struct RTLIL::Cell *cell, std::st
        attr_it = cell->attributes.find("\\fsm_export");
        if (!filename.empty()) {
          kiss_name.assign(filename);
-       } else if (attr_it != cell->attributes.end() && attr_it->second.str != "") {
-               kiss_name.assign(attr_it->second.str);
+       } else if (attr_it != cell->attributes.end() && attr_it->second.decode_string() != "") {
+               kiss_name.assign(attr_it->second.decode_string());
        }
        else {
                kiss_name.assign(module->name);