memory_share: fix wrong argidx in extra_args
authorimhcyx <git@iwannaknow.me>
Thu, 5 May 2022 08:58:39 +0000 (16:58 +0800)
committerimhcyx <git@iwannaknow.me>
Thu, 5 May 2022 08:58:39 +0000 (16:58 +0800)
passes/memory/memory_share.cc

index 1ddc13f903c993b9c9a79b1df3e70e9b45ec08b3..5cb11d62b3c18279434f42565da6848f844b2da8 100644 (file)
@@ -555,7 +555,7 @@ struct MemorySharePass : public Pass {
                        }
                        break;
                }
-               extra_args(args, 1, design);
+               extra_args(args, argidx, design);
                MemoryShareWorker msw(design, flag_widen, flag_sat);
 
                for (auto module : design->selected_modules())