Skip to content

Commit

Permalink
leak
Browse files Browse the repository at this point in the history
  • Loading branch information
alaindargelas committed Nov 26, 2023
1 parent 4fed5d3 commit e3720a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontends/systemverilog/uhdm_ast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,8 @@ static AST::AstNode *convert_dot(AST::AstNode *wire_node, AST::AstNode *node, AS
// offset = size * n
auto index = dot->children.at(0)->children.at(0);
auto move_offset = new AST::AstNode(AST::AST_MUL, target_size, index->clone());
delete expanded->children[0];
delete expanded->children[1];
expanded->children[0] = new AST::AstNode(AST::AST_ADD, move_offset, target_l->clone());
expanded->children[1] = new AST::AstNode(AST::AST_ADD, move_offset->clone(), target_r->clone());
return expanded;
Expand Down

0 comments on commit e3720a3

Please sign in to comment.