Return correct modname when found in cache.
authorJulius Roob <roob@informatik.uni-kl.de>
Thu, 26 Nov 2020 12:28:28 +0000 (13:28 +0100)
committerJulius Roob <roob@informatik.uni-kl.de>
Thu, 26 Nov 2020 12:31:22 +0000 (13:31 +0100)
frontends/ast/ast.cc

index c8183580bcaf6dd0b02df68d1bc829bdfdd3a5f9..1c0a8b34df463a2a92e9ae887559945806b80cbf 100644 (file)
@@ -1511,6 +1511,7 @@ RTLIL::IdString AstModule::derive(RTLIL::Design *design, const dict<RTLIL::IdStr
                }
 
        } else {
+               modname = new_modname;
                log("Found cached RTLIL representation for module `%s'.\n", modname.c_str());
        }