coolrunner2: remove spurious log_pop() call, fixes #1463
authorMartin Pietryka <martin@pietryka.at>
Sat, 23 Nov 2019 05:18:23 +0000 (06:18 +0100)
committerMartin Pietryka <martin@pietryka.at>
Sat, 23 Nov 2019 05:21:40 +0000 (06:21 +0100)
This was causing a segmentation fault because there is no accompanying
log_push() call so header_count.size() became -1.

Signed-off-by: Martin Pietryka <martin@pietryka.at>
techlibs/coolrunner2/synth_coolrunner2.cc

index 21bbcaef4cff3d600f1a3385aca9c25ee4d9f45f..014c68622f1304081d7cf4f3ace4de37a5e4f4cc 100644 (file)
@@ -194,8 +194,6 @@ struct SynthCoolrunner2Pass : public ScriptPass
                        if (!json_file.empty() || help_mode)
                                run(stringf("write_json %s", help_mode ? "<file-name>" : json_file.c_str()));
                }
-
-               log_pop();
        }
 } SynthCoolrunner2Pass;