aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_stmts.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-29 20:27:45 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-29 20:32:42 +0100
commit9525af450ca384c9a081297f7ce63a30af944b09 (patch)
treea820fc9e9f959551259e6ce11b439b4d29daedfd /src/synth/synth-vhdl_stmts.adb
parent1b5dea5805dd45dc628838b1435f5686b913e8df (diff)
downloadghdl-9525af450ca384c9a081297f7ce63a30af944b09.tar.gz
ghdl-9525af450ca384c9a081297f7ce63a30af944b09.tar.bz2
ghdl-9525af450ca384c9a081297f7ce63a30af944b09.zip
synth: represent access types as pointers in memory
Diffstat (limited to 'src/synth/synth-vhdl_stmts.adb')
-rw-r--r--src/synth/synth-vhdl_stmts.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synth/synth-vhdl_stmts.adb b/src/synth/synth-vhdl_stmts.adb
index 52f08ce86..78a177359 100644
--- a/src/synth/synth-vhdl_stmts.adb
+++ b/src/synth/synth-vhdl_stmts.adb
@@ -298,13 +298,13 @@ package body Synth.Vhdl_Stmts is
| Iir_Kind_Dereference =>
declare
Acc : Memtyp;
- Idx : Heap_Index;
+ Idx : Heap_Ptr;
begin
Synth_Assignment_Prefix
(Syn_Inst, Get_Prefix (Pfx), Dest_Base, Dest_Typ, Dest_Off);
Acc := (Dest_Typ, Dest_Base.Val.Mem + Dest_Off.Mem_Off);
Idx := Read_Access (Acc);
- if Idx = Null_Heap_Index then
+ if Idx = Null_Heap_Ptr then
Error_Msg_Synth (Syn_Inst, Pfx, "NULL access dereferenced");
Dest_Base := No_Valtyp;
Dest_Typ := Dest_Typ.Acc_Acc;