From: Eddie Hung Date: Wed, 11 Sep 2019 21:17:45 +0000 (-0700) Subject: Fix UB X-Git-Tag: working-ls180~1039^2~125 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63431fe42a364f257f9d5571433e139d54cd2c11;p=yosys.git Fix UB --- diff --git a/passes/pmgen/peepopt_dffmux.pmg b/passes/pmgen/peepopt_dffmux.pmg index 60a708616..fbabf90f0 100644 --- a/passes/pmgen/peepopt_dffmux.pmg +++ b/passes/pmgen/peepopt_dffmux.pmg @@ -35,8 +35,8 @@ match cemux endmatch code - SigSpec &D = cemux->connections_.at(cemuxAB == \A ? \B : \A); - SigSpec &Q = dff->connections_.at(\Q); + SigSpec D = port(cemux, cemuxAB == \A ? \B : \A); + SigSpec Q = port(dff, \Q); Const rst; if (rstmux) rst = port(rstmux, rstmuxBA).as_const();