diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-09-11 14:17:45 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-09-11 14:18:02 -0700 |
commit | 817ac7c5e051b2f0947bd9cb9044ac7c3e2f089c (patch) | |
tree | e5cda84820284f2d485ed8cdc0f921c128858249 /passes/pmgen/peepopt_dffmux.pmg | |
parent | bdb5e0f29c3e913fb4e701317105363064b9a7d3 (diff) | |
download | yosys-817ac7c5e051b2f0947bd9cb9044ac7c3e2f089c.tar.gz yosys-817ac7c5e051b2f0947bd9cb9044ac7c3e2f089c.tar.bz2 yosys-817ac7c5e051b2f0947bd9cb9044ac7c3e2f089c.zip |
Fix UB
Diffstat (limited to 'passes/pmgen/peepopt_dffmux.pmg')
-rw-r--r-- | passes/pmgen/peepopt_dffmux.pmg | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |