From 9e7c56c666a48f6db66e936bb547c70d22d18c0a Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 13 May 2020 08:25:46 +0200 Subject: trans-chap7: add a comment. --- src/vhdl/translate/trans-chap7.adb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vhdl/translate/trans-chap7.adb b/src/vhdl/translate/trans-chap7.adb index 3abaf06d8..32c8b8537 100644 --- a/src/vhdl/translate/trans-chap7.adb +++ b/src/vhdl/translate/trans-chap7.adb @@ -5002,6 +5002,9 @@ package body Trans.Chap7 is Func : Iir; begin Func := Find_Predefined_Function (Base_Type, Eq); + -- Note: no location is passed as the conversion goes to the base + -- type (which is always OK). + -- If the location is used, compilation will fail. Lc := Translate_Implicit_Conv (M2E (L), Etype, Base_Type, Mode_Value, Null_Iir); Rc := Translate_Implicit_Conv -- cgit v1.2.3