mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +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
|
@ -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…
Reference in a new issue