aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-oper.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-oper.adb')
-rw-r--r--src/synth/synth-oper.adb3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/synth/synth-oper.adb b/src/synth/synth-oper.adb
index a3c76a728..b61b027ff 100644
--- a/src/synth/synth-oper.adb
+++ b/src/synth/synth-oper.adb
@@ -628,8 +628,7 @@ package body Synth.Oper is
(Left.Scal mod Right.Scal,
Get_Value_Type (Syn_Inst, Get_Type (Expr)));
else
- Error_Msg_Synth (+Expr, "non-constant mod not supported");
- return null;
+ return Synth_Int_Dyadic (Id_Smod);
end if;
when Iir_Predefined_Integer_Rem =>
if Is_Const (Left) and then Is_Const (Right) then