aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-builders.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-01-26 17:04:05 +0100
committerTristan Gingold <tgingold@free.fr>2020-01-26 17:04:05 +0100
commit060d785216fd7006482608473341354ade78f8b9 (patch)
tree3064907777d0844c918277d7cbe22aed38d96d35 /src/synth/netlists-builders.adb
parent2af18ead15c7b2f7837e821f06d1fa181bdbf5c4 (diff)
downloadghdl-060d785216fd7006482608473341354ade78f8b9.tar.gz
ghdl-060d785216fd7006482608473341354ade78f8b9.tar.bz2
ghdl-060d785216fd7006482608473341354ade78f8b9.zip
synth: avoid crash on incorrect slice direction. For #1116
Diffstat (limited to 'src/synth/netlists-builders.adb')
-rw-r--r--src/synth/netlists-builders.adb1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/synth/netlists-builders.adb b/src/synth/netlists-builders.adb
index c205ef318..c591c38a8 100644
--- a/src/synth/netlists-builders.adb
+++ b/src/synth/netlists-builders.adb
@@ -1343,7 +1343,6 @@ package body Netlists.Builders is
is
Wd : constant Width := Get_Width (I);
pragma Assert (Wd /= No_Width);
- pragma Assert (W > 0);
pragma Assert (W + Off <= Wd);
Inst : Instance;
O : Net;