summaryrefslogtreecommitdiff
path: root/src/vhdl/translate/trans-chap3.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/translate/trans-chap3.adb')
-rw-r--r--src/vhdl/translate/trans-chap3.adb12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vhdl/translate/trans-chap3.adb b/src/vhdl/translate/trans-chap3.adb
index 9b67e46..a01c4c0 100644
--- a/src/vhdl/translate/trans-chap3.adb
+++ b/src/vhdl/translate/trans-chap3.adb
@@ -60,12 +60,12 @@ package body Trans.Chap3 is
-- Signal type.
if Info.Type_Mode in Type_Mode_Scalar then
- Info.Ortho_Type (Mode_Signal) :=
- New_Access_Type (Info.Ortho_Type (Mode_Value));
- end if;
- if Info.Ortho_Type (Mode_Signal) /= O_Tnode_Null then
- New_Type_Decl (Create_Identifier ("SIG"),
- Info.Ortho_Type (Mode_Signal));
+ Info.Ortho_Type (Mode_Signal) := Ghdl_Signal_Ptr;
+ else
+ if Info.Ortho_Type (Mode_Signal) /= O_Tnode_Null then
+ New_Type_Decl (Create_Identifier ("SIG"),
+ Info.Ortho_Type (Mode_Signal));
+ end if;
end if;
-- Signal pointer type.