Use Pass::call_on_module() as per @cliffordwolf comments

This commit is contained in:
Eddie Hung 2019-07-02 08:20:37 -07:00
parent 90382a0f6d
commit f1504696e5
1 changed files with 1 additions and 1 deletions

View File

@ -1299,7 +1299,7 @@ struct ScriptCmdPass : public Pass {
if (!c.second.is_fully_const())
log_error("RHS of selected wire %s.%s is not constant.\n", log_id(mod), log_id(w));
auto v = c.second.as_const();
Pass::call(design, v.decode_string());
Pass::call_on_module(design, mod, v.decode_string());
}
}
else if (args.size() < 2)