From 6781543244105c880eb847dc59d1d801b10bdc4f Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 15 Jan 2017 16:39:12 -0600 Subject: [PATCH 1/2] passes/hierarchy: delete some dead code Signed-off-by: Austin Seipp --- passes/hierarchy/hierarchy.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index 337af7fd7..f1c4a1d3b 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -175,16 +175,12 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check { filename = dir + "/" + RTLIL::unescape_id(cell->type) + ".v"; if (check_file_exists(filename)) { - std::vector args; - args.push_back(filename); Frontend::frontend_call(design, NULL, filename, "verilog"); goto loaded_module; } filename = dir + "/" + RTLIL::unescape_id(cell->type) + ".il"; if (check_file_exists(filename)) { - std::vector args; - args.push_back(filename); Frontend::frontend_call(design, NULL, filename, "ilang"); goto loaded_module; } From b54972c1120fa6c5f4dc85d58178fb1211547691 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 25 Jan 2017 17:00:59 +0100 Subject: [PATCH 2/2] Fix RTLIL::Memory::start_offset initialization --- kernel/rtlil.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 40ad8ca13..365bfd9f8 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -2050,6 +2050,7 @@ RTLIL::Memory::Memory() hashidx_ = hashidx_count; width = 1; + start_offset = 0; size = 0; }