aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-19 11:43:10 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-19 11:43:10 +0200
commitd221e90706915c8ba540805167c8e9e07d4c3d6f (patch)
tree95c4ec5e32dd79305de7b265cf33e077c8b6c5e1 /ice40
parentb0d9b994eb211f4c4060f6b9802ea5692512e08c (diff)
downloadnextpnr-d221e90706915c8ba540805167c8e9e07d4c3d6f.tar.gz
nextpnr-d221e90706915c8ba540805167c8e9e07d4c3d6f.tar.bz2
nextpnr-d221e90706915c8ba540805167c8e9e07d4c3d6f.zip
Reducing performance cost of asserts
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/bitstream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc
index 35a460f9..09312b07 100644
--- a/ice40/bitstream.cc
+++ b/ice40/bitstream.cc
@@ -36,7 +36,7 @@ const ConfigEntryPOD &find_config(const TileInfoPOD &tile, const std::string &na
return tile.entries[i];
}
}
- NPNR_ASSERT_FALSE("unable to find config bit " + name);
+ NPNR_ASSERT_FALSE_STR("unable to find config bit " + name);
}
std::tuple<int8_t, int8_t, int8_t> get_ieren(const BitstreamInfoPOD &bi, int8_t x, int8_t y, int8_t z)