From 46b38f8a403e071d2d9f2bf50e08ef0e0463d845 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Thu, 18 Feb 2021 19:03:05 -0800 Subject: Fix reference copy. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- fpga_interchange/arch.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fpga_interchange/arch.h') 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 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; } -- cgit v1.2.3