mirror of https://github.com/YosysHQ/yosys.git
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
|
@ -1810,6 +1810,11 @@ skip_dynamic_range_lvalue_expansion:;
|
|||
|
||||
log_assert(block != nullptr);
|
||||
|
||||
if (num_steps == 0) {
|
||||
newNode = children[0]->clone();
|
||||
goto apply_newNode;
|
||||
}
|
||||
|
||||
int myidx = autoidx++;
|
||||
AstNode *outreg = nullptr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue