summaryrefslogtreecommitdiff
path: root/src/grt
diff options
context:
space:
mode:
authorTristan Gingold2015-01-15 06:08:25 +0100
committerTristan Gingold2015-01-15 06:08:25 +0100
commit97f7a2f1df86d1d21461068a6854623d2b389264 (patch)
treedab4636b2e6b526c3dd80010032b63c72c15bbe8 /src/grt
parent221bd46f4dd1bcb3496c7e6a9c728ed33b9616dd (diff)
downloadghdl-97f7a2f1df86d1d21461068a6854623d2b389264.tar.gz
ghdl-97f7a2f1df86d1d21461068a6854623d2b389264.tar.bz2
ghdl-97f7a2f1df86d1d21461068a6854623d2b389264.zip
grt-disp_rti: fix thinko (no blocks for if-generate).
Diffstat (limited to 'src/grt')
-rw-r--r--src/grt/grt-disp_rti.adb7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/grt/grt-disp_rti.adb b/src/grt/grt-disp_rti.adb
index ad45d08..bf49fbb 100644
--- a/src/grt/grt-disp_rti.adb
+++ b/src/grt/grt-disp_rti.adb
@@ -704,8 +704,11 @@ package body Grt.Disp_Rti is
Ctxt, Indent + 1);
when Ghdl_Rtik_If_Generate =>
Nctxt := Get_If_Generate_Child (Ctxt, To_Ghdl_Rti_Access (Blk));
- Disp_Block
- (To_Ghdl_Rtin_Block_Acc (Nctxt.Block), Nctxt, Indent + 1);
+ if Nctxt /= Null_Context then
+ -- There might be no blocks.
+ Disp_Block
+ (To_Ghdl_Rtin_Block_Acc (Nctxt.Block), Nctxt, Indent + 1);
+ end if;
when others =>
Internal_Error ("disp_block");
end case;