Skip to content

Commit 83ad47a

Browse files
committed
systemverilog-plugin: add assert
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
1 parent f84b823 commit 83ad47a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

systemverilog-plugin/UhdmAst.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,7 @@ void UhdmAst::process_module()
19051905
std::vector<std::pair<RTLIL::IdString, RTLIL::Const>> parameters;
19061906
visit_one_to_many({vpiParamAssign}, obj_h, [&](AST::AstNode *node) {
19071907
if (node && node->type == AST::AST_PARAMETER) {
1908+
log_assert(!node->children.empty());
19081909
if (node->children[0]->type != AST::AST_CONSTANT) {
19091910
if (shared.top_nodes.count(type)) {
19101911
simplify_parameter(node, shared.top_nodes[type]);

0 commit comments

Comments
 (0)