diff options
author | Ahmed Irfan <ahmedirfan1983@gmail.com> | 2014-01-14 11:25:06 +0100 |
---|---|---|
committer | Ahmed Irfan <ahmedirfan1983@gmail.com> | 2014-01-14 11:25:06 +0100 |
commit | 1091c24d0028850699ba209469f03b28ebc66e10 (patch) | |
tree | dfdf036678958312ac003e4047cea70fa74e1fa7 /frontends/ast/simplify.cc | |
parent | 09f16c9d0c1f0b8aec4a376449c831fa98a4e985 (diff) | |
parent | b4ce7fee06d14d2b767ad81968b5047766d4da84 (diff) | |
download | yosys-1091c24d0028850699ba209469f03b28ebc66e10.tar.gz yosys-1091c24d0028850699ba209469f03b28ebc66e10.tar.bz2 yosys-1091c24d0028850699ba209469f03b28ebc66e10.zip |
Merge branch 'master' of https://github.com/ahmedirfan1983/yosys into btor
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r-- | frontends/ast/simplify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 9b8ed7603..bc5dec7b9 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1065,7 +1065,7 @@ skip_dynamic_range_lvalue_expansion:; { AstNode *buf = children[0]->clone(); while (buf->simplify(true, false, false, stage, width_hint, sign_hint)) { } - if (!buf->type == AST_CONSTANT) + if (buf->type != AST_CONSTANT) log_error("Failed to evaluate system function `%s' with non-constant value at %s:%d.\n", str.c_str(), filename.c_str(), linenum); RTLIL::Const arg_value = buf->bitsAsConst(); |