diff options
-rw-r--r-- | src/vhdl/translate/trans-chap2.adb | 3 | ||||
-rw-r--r-- | src/vhdl/translate/trans.adb | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/vhdl/translate/trans-chap2.adb b/src/vhdl/translate/trans-chap2.adb index 69ec3e547..e0c19c606 100644 --- a/src/vhdl/translate/trans-chap2.adb +++ b/src/vhdl/translate/trans-chap2.adb @@ -343,7 +343,8 @@ package body Trans.Chap2 is when Iir_Kind_File_Type_Definition => return True; when Iir_Kind_Protected_Type_Declaration => - raise Internal_Error; + -- We suppose there is at least one method. + return True; when Iir_Kinds_Composite_Type_Definition => -- At least for "=". return True; diff --git a/src/vhdl/translate/trans.adb b/src/vhdl/translate/trans.adb index dbf16969c..91ebb9e3b 100644 --- a/src/vhdl/translate/trans.adb +++ b/src/vhdl/translate/trans.adb @@ -242,9 +242,6 @@ package body Trans is is Inst : Inst_Build_Acc; begin - if Inst_Build /= null and then Inst_Build.Kind /= Instance then - raise Internal_Error; - end if; Inst := new Inst_Build_Type (Instance); Inst.Prev := Inst_Build; Inst.Prev_Id_Start := Identifier_Start; |