mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-28 17:59:12 +00:00
Fix segfault in AST simplify
(as proposed by Dan Gisselquist) Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
3d671630e2
commit
fdf7c42181
1 changed files with 5 additions and 0 deletions
|
@ -1810,6 +1810,11 @@ skip_dynamic_range_lvalue_expansion:;
|
||||||
|
|
||||||
log_assert(block != nullptr);
|
log_assert(block != nullptr);
|
||||||
|
|
||||||
|
if (num_steps == 0) {
|
||||||
|
newNode = children[0]->clone();
|
||||||
|
goto apply_newNode;
|
||||||
|
}
|
||||||
|
|
||||||
int myidx = autoidx++;
|
int myidx = autoidx++;
|
||||||
AstNode *outreg = nullptr;
|
AstNode *outreg = nullptr;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue