Fix handling of $past 2nd argument in read_verilog
authorClifford Wolf <clifford@clifford.at>
Sun, 30 Sep 2018 16:43:35 +0000 (18:43 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 30 Sep 2018 16:43:35 +0000 (18:43 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/ast/simplify.cc

index 04c429f7fa8dacd58eded038723800bf72ca7398..aa3b982d81b3985f883b12f6da31ba17b1291e15 100644 (file)
@@ -1781,7 +1781,7 @@ skip_dynamic_range_lvalue_expansion:;
                                if (GetSize(children) == 2)
                                {
                                        AstNode *buf = children[1]->clone();
-                                       while (buf->simplify(true, false, false, stage, width_hint, sign_hint, false)) { }
+                                       while (buf->simplify(true, false, false, stage, -1, false, false)) { }
                                        if (buf->type != AST_CONSTANT)
                                                log_file_error(filename, linenum, "Failed to evaluate system function `%s' with non-constant value.\n", str.c_str());