diff options
Diffstat (limited to 'src/vhdl/translate')
-rw-r--r-- | src/vhdl/translate/translation.adb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vhdl/translate/translation.adb b/src/vhdl/translate/translation.adb index 52bdc9df9..b7c8eab00 100644 --- a/src/vhdl/translate/translation.adb +++ b/src/vhdl/translate/translation.adb @@ -55,15 +55,13 @@ package body Translation is function Get_Resolv_Ortho_Decl (Func : Iir) return O_Dnode is - Info : Subprg_Resolv_Info_Acc; + Info : constant Subprg_Info_Acc := Get_Info (Func); begin - Info := Get_Info (Func).Subprg_Resolv; - if Info = null then + if Info = null or else Info.Subprg_Resolv = null then -- Maybe the resolver is not used. return O_Dnode_Null; - else - return Info.Resolv_Func; end if; + return Info.Subprg_Resolv.Resolv_Func; end Get_Resolv_Ortho_Decl; procedure Gen_Filename (Design_File : Iir) |