Fixed detection of init attribute in opt_rmdff

This commit is contained in:
Clifford Wolf 2014-02-04 23:00:32 +01:00
parent 69e867f3e8
commit 99b9c56da1
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ static bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff)
assign_map.apply(sig_c);
assign_map.apply(sig_r);
bool has_init;
bool has_init = false;
RTLIL::Const val_init;
for (auto bit : dff_init_map(sig_q).to_sigbit_vector()) {
if (bit.wire == NULL)