mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 10:03:36 +02:00
Fix segfault in AST simplify
(as proposed by Dan Gisselquist) Signed-off-by: Clifford Wolf <[email protected]>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user