summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-01-12 21:04:42 +0100
committerClifford Wolf <clifford@clifford.at>2014-01-12 21:04:42 +0100
commita3d94bf88819ce3f0ffa161137a5549fc6d8490b (patch)
tree23b070ec58f3bf6050107fc8f2b2fb1fbadf7f41 /frontends
parentbc541b47ea0ceb2556b54bd5310d11c1d77a5d3d (diff)
Fixed typo in frontends/ast/simplify.cc
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ast/simplify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 9b8ed760..bc5dec7b 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();