From 34005348b65f69a2905357ee5877b5fbdd14da8c Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 24 Dec 2017 17:21:37 +0100 Subject: [PATCH] Bugfix in verilog_defaults argument parser --- frontends/verilog/verilog_frontend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/verilog/verilog_frontend.cc b/frontends/verilog/verilog_frontend.cc index 19fc3c6af..e5917b97e 100644 --- a/frontends/verilog/verilog_frontend.cc +++ b/frontends/verilog/verilog_frontend.cc @@ -407,7 +407,7 @@ struct VerilogDefaults : public Pass { } virtual void execute(std::vector args, RTLIL::Design*) { - if (args.size() == 0) + if (args.size() < 2) cmd_error(args, 1, "Missing argument."); if (args[1] == "-add") { -- 2.30.2