aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_expr.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-06-02 20:26:09 +0200
committerTristan Gingold <tgingold@free.fr>2016-06-02 20:26:09 +0200
commit9f3567a554b78b200ea91cb66e5945a80fd0ceb3 (patch)
treef5e8c42809ee3c534ae920a33d7152631cefee9f /src/vhdl/sem_expr.adb
parent39d035c3673f513c54e6fe57cd42e2b88d0d68ff (diff)
downloadghdl-9f3567a554b78b200ea91cb66e5945a80fd0ceb3.tar.gz
ghdl-9f3567a554b78b200ea91cb66e5945a80fd0ceb3.tar.bz2
ghdl-9f3567a554b78b200ea91cb66e5945a80fd0ceb3.zip
Handle default parameters for file_open.
Display backtrace for error in file_open.
Diffstat (limited to 'src/vhdl/sem_expr.adb')
-rw-r--r--src/vhdl/sem_expr.adb8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb
index 1a07446b4..f36132407 100644
--- a/src/vhdl/sem_expr.adb
+++ b/src/vhdl/sem_expr.adb
@@ -1611,11 +1611,9 @@ package body Sem_Expr is
if Ref_Type = Universal_Integer_Type_Definition
or Ref_Type = Universal_Real_Type_Definition
then
- if Res = Null_Iir then
- Res := El;
- else
- return Null_Iir;
- end if;
+ -- There could be only one such subprogram.
+ pragma Assert (Res = Null_Iir);
+ Res := El;
end if;
end if;
end loop;