3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

fmt: fuzz, fix (remove extraneous + incorrect fill)

"blk + chunks" is often an overrun, plus the fill is unnecessary; we
throw blk away immediately.
This commit is contained in:
Charlotte 2023-06-28 11:51:23 +10:00 committed by Marcelina Kościelnicka
parent 9f9561379b
commit 2ae551c0af
4 changed files with 67 additions and 1 deletions

View file

@ -654,7 +654,6 @@ struct value : public expr_base<value<Bits>> {
}
std::copy(blk, blk + origLen, data);
std::fill(blk + origLen, blk + chunks, 0);
}
static chunk::type getShiftedBlock(const value<Bits> &num, size_t x, size_t y) {