aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-07-14 07:33:39 +0200
committerTristan Gingold <tgingold@free.fr>2017-07-14 07:33:39 +0200
commit443cbd051e90942674d6b9aea01ed8b7a84a3cc4 (patch)
treeef65384d32eccfcb652b9c2770cfe4c02bc9f718
parent5783528e1ecd9f7d072efa7a27006efff86549ed (diff)
downloadghdl-443cbd051e90942674d6b9aea01ed8b7a84a3cc4.tar.gz
ghdl-443cbd051e90942674d6b9aea01ed8b7a84a3cc4.tar.bz2
ghdl-443cbd051e90942674d6b9aea01ed8b7a84a3cc4.zip
Set parent of implicit deallocate declaration.
Fix #384
-rw-r--r--src/vhdl/sem_decls.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vhdl/sem_decls.adb b/src/vhdl/sem_decls.adb
index e3d0480c4..8b22bf25d 100644
--- a/src/vhdl/sem_decls.adb
+++ b/src/vhdl/sem_decls.adb
@@ -1235,6 +1235,7 @@ package body Sem_Decls is
Set_Identifier (Deallocate_Proc, Std_Names.Name_Deallocate);
Set_Implicit_Definition
(Deallocate_Proc, Iir_Predefined_Deallocate);
+ Set_Parent (Deallocate_Proc, Get_Parent (Decl));
Var_Interface :=
Create_Iir (Iir_Kind_Interface_Variable_Declaration);