1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-15 20:36:31 +00:00

Fix clang compile error

This commit is contained in:
Miodrag Milanovic
2025-06-30 09:43:07 +02:00
parent b150f24e85
commit 474ba2d1e7

View File

@@ -326,10 +326,8 @@ void GateMatePacker::pack_io_sel()
cells.push_back(&ci);
}
std::pair<CellInfo *, CellInfo *> ddr[uarch->dies][9]; // for each bank
for (int i = 0; i < uarch->dies; ++i)
for (int j = 0; j < 9; ++j)
ddr[i][j] = {nullptr, nullptr};
std::vector<std::vector<std::pair<CellInfo *, CellInfo *>>> ddr(
uarch->dies, std::vector<std::pair<CellInfo *, CellInfo *>>(9, {nullptr, nullptr}));
auto set_out_clk = [&](CellInfo *cell, CellInfo *target) -> bool {
NetInfo *clk_net = cell->getPort(id_CLK);