diff options
Diffstat (limited to 'src/vhdl/vhdl-configuration.adb')
-rw-r--r-- | src/vhdl/vhdl-configuration.adb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vhdl/vhdl-configuration.adb b/src/vhdl/vhdl-configuration.adb index faafe0d4f..d583597e2 100644 --- a/src/vhdl/vhdl-configuration.adb +++ b/src/vhdl/vhdl-configuration.adb @@ -908,10 +908,13 @@ package body Vhdl.Configuration is declare use Vhdl.Sem_Scopes; Comp : constant Iir := Get_Named_Entity (Inst); - Interp : constant Name_Interpretation_Type := - Get_Interpretation (Get_Identifier (Comp)); + Interp : Name_Interpretation_Type; Decl : Iir; begin + if Is_Error (Comp) then + return Walk_Continue; + end if; + Interp := Get_Interpretation (Get_Identifier (Comp)); if Valid_Interpretation (Interp) then Decl := Get_Declaration (Interp); pragma Assert |