1
0
mirror of synced 2026-02-02 15:11:06 +00:00
Files
YosysHQ.yosys/frontends
Xiretza 0c66141ed2 verilog: rebuild user_type_stack from globals before parsing file
This was actually a ticking UB bomb: after running the parser, the type
maps contain pointers to children of the current AST, which is
recursively deleted after the pass has executed. This leaves the
pointers in user_type_stack dangling, which just happened to never be a
problem due to another bug that causes typedefs from higher-level type
maps to never be considered.

Rebuilding the type stack from the design's globals ensures the AstNode
pointers are valid.
2021-03-18 20:52:36 -04:00
..
2020-06-18 23:34:52 +00:00
2021-03-15 17:19:19 +01:00
2020-10-19 13:40:57 +02:00
2021-03-04 16:43:30 +01:00