mirror of https://github.com/YosysHQ/yosys.git
Fix UB
This commit is contained in:
parent
690b1a064d
commit
63431fe42a
|
@ -35,8 +35,8 @@ match cemux
|
||||||
endmatch
|
endmatch
|
||||||
|
|
||||||
code
|
code
|
||||||
SigSpec &D = cemux->connections_.at(cemuxAB == \A ? \B : \A);
|
SigSpec D = port(cemux, cemuxAB == \A ? \B : \A);
|
||||||
SigSpec &Q = dff->connections_.at(\Q);
|
SigSpec Q = port(dff, \Q);
|
||||||
Const rst;
|
Const rst;
|
||||||
if (rstmux)
|
if (rstmux)
|
||||||
rst = port(rstmux, rstmuxBA).as_const();
|
rst = port(rstmux, rstmuxBA).as_const();
|
||||||
|
|
Loading…
Reference in New Issue