Fixed detection of init attribute in opt_rmdff
authorClifford Wolf <clifford@clifford.at>
Tue, 4 Feb 2014 22:00:32 +0000 (23:00 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 4 Feb 2014 22:00:32 +0000 (23:00 +0100)
passes/opt/opt_rmdff.cc

index 02b7f77e71610a6090b587a689edb22cddd8514d..9a438537c7fffb8c59ec205b387b8bd3a9c1cbac 100644 (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)