diff options
author | Tristan Gingold | 2016-01-17 06:53:01 +0100 |
---|---|---|
committer | Tristan Gingold | 2016-01-19 19:54:40 +0100 |
commit | 1e2aeb2a4635f24c60384232e319b682b0d99f3c (patch) | |
tree | f0717eb0065cc1adbd397e69957959826d809a81 /src/vhdl/sem_expr.adb | |
parent | 8e2468448947c7e1567cc50035a483c2ebd7b9d9 (diff) | |
download | ghdl-1e2aeb2a4635f24c60384232e319b682b0d99f3c.tar.gz ghdl-1e2aeb2a4635f24c60384232e319b682b0d99f3c.tar.bz2 ghdl-1e2aeb2a4635f24c60384232e319b682b0d99f3c.zip |
Clean up some code and comments about constant declarations.
Diffstat (limited to 'src/vhdl/sem_expr.adb')
-rw-r--r-- | src/vhdl/sem_expr.adb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb index df2f68d..5568905 100644 --- a/src/vhdl/sem_expr.adb +++ b/src/vhdl/sem_expr.adb @@ -3993,12 +3993,6 @@ package body Sem_Expr is end if; Lib := Get_Parent (Expr); - if Get_Kind (Lib) = Iir_Kind_Design_Unit then - Lib := Get_Library_Unit (Lib); - -- FIXME: the parent of the constant is the library unit or - -- the design unit ? - raise Internal_Error; - end if; Cur_Lib := Get_Library_Unit (Sem.Get_Current_Design_Unit); if (Get_Kind (Cur_Lib) = Iir_Kind_Package_Declaration and then Lib = Cur_Lib) |