aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast
diff options
context:
space:
mode:
authorhuaixv <44743118+huaixv@users.noreply.github.com>2020-03-17 13:00:12 +0800
committerhuaixv <44743118+huaixv@users.noreply.github.com>2020-03-19 10:22:07 +0800
commitcd82ccd2581f93b17e2de017b7a2504d7733f2df (patch)
treece2be9f0a29a3372c6634dc50702de6c07e0875e /frontends/ast
parented4fa19ba2812c286562baf26bbbcb49afad83bc (diff)
downloadyosys-cd82ccd2581f93b17e2de017b7a2504d7733f2df.tar.gz
yosys-cd82ccd2581f93b17e2de017b7a2504d7733f2df.tar.bz2
yosys-cd82ccd2581f93b17e2de017b7a2504d7733f2df.zip
Add precise locations for asserts
Diffstat (limited to 'frontends/ast')
-rw-r--r--frontends/ast/simplify.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 04c02d893..2fbadcdad 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -1811,6 +1811,7 @@ skip_dynamic_range_lvalue_expansion:;
newNode->children.push_back(assign_en);
AstNode *assertnode = new AstNode(type);
+ assertnode->location = location;
assertnode->str = str;
assertnode->children.push_back(new AstNode(AST_IDENTIFIER));
assertnode->children.push_back(new AstNode(AST_IDENTIFIER));