bugfix in opt_share
authorClifford Wolf <clifford@clifford.at>
Sun, 28 Dec 2014 20:26:36 +0000 (21:26 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 28 Dec 2014 20:26:36 +0000 (21:26 +0100)
passes/opt/opt_share.cc

index c581b749e6e390d5e4664cfaafc2ff9cb4fbcbda..66e29b66a5bc8f910a11cd66eb35e6053ff362e0 100644 (file)
@@ -270,6 +270,7 @@ struct OptShareWorker
                                                }
                                        }
                                        log("    Removing %s cell `%s' from module `%s'.\n", cell->type.c_str(), cell->name.c_str(), module->name.c_str());
+                                       cell_hash_cache.erase(cell);
                                        module->remove(cell);
                                        total_count++;
                                } else {