diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-18 19:03:05 -0800 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-23 14:09:27 -0800 |
commit | 46b38f8a403e071d2d9f2bf50e08ef0e0463d845 (patch) | |
tree | 489291ffcbe9d6d155279c4c45f24b12b2450822 /fpga_interchange | |
parent | 3ccb164f2aa23a03f1910f891da93f74a6d04a1b (diff) | |
download | nextpnr-46b38f8a403e071d2d9f2bf50e08ef0e0463d845.tar.gz nextpnr-46b38f8a403e071d2d9f2bf50e08ef0e0463d845.tar.bz2 nextpnr-46b38f8a403e071d2d9f2bf50e08ef0e0463d845.zip |
Fix reference copy.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'fpga_interchange')
-rw-r--r-- | fpga_interchange/arch.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fpga_interchange/arch.h b/fpga_interchange/arch.h index 76ad7e00..a5352b60 100644 --- a/fpga_interchange/arch.h +++ b/fpga_interchange/arch.h @@ -900,19 +900,19 @@ struct Arch : ArchAPI<ArchRanges> BelId get_vcc_bel() const { - auto &constants = chip_info->constants; + auto &constants = *chip_info->constants; BelId bel; - bel.tile = constants->vcc_bel_tile; - bel.index = constants->vcc_bel_index; + bel.tile = constants.vcc_bel_tile; + bel.index = constants.vcc_bel_index; return bel; } BelId get_gnd_bel() const { - auto &constants = chip_info->constants; + auto &constants = *chip_info->constants; BelId bel; - bel.tile = constants->gnd_bel_tile; - bel.index = constants->gnd_bel_index; + bel.tile = constants.gnd_bel_tile; + bel.index = constants.gnd_bel_index; return bel; } |