aboutsummaryrefslogtreecommitdiffstats
path: root/sem_expr.adb
diff options
context:
space:
mode:
authorgingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2005-11-01 03:04:50 +0000
committergingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2005-11-01 03:04:50 +0000
commitefb30b021679ac1334e1d4fdffa073eaaa082a51 (patch)
tree662fd4ed6a0ef3fb8e0f2e214d676f5720416c04 /sem_expr.adb
parent1f7fba5473ed7e609d46ee9b75b738be92a28b86 (diff)
downloadghdl-efb30b021679ac1334e1d4fdffa073eaaa082a51.tar.gz
ghdl-efb30b021679ac1334e1d4fdffa073eaaa082a51.tar.bz2
ghdl-efb30b021679ac1334e1d4fdffa073eaaa082a51.zip
update: support of amd64 + more optimizations
Diffstat (limited to 'sem_expr.adb')
-rw-r--r--sem_expr.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/sem_expr.adb b/sem_expr.adb
index 77735b424..d850f76f5 100644
--- a/sem_expr.adb
+++ b/sem_expr.adb
@@ -3313,7 +3313,7 @@ package body Sem_Expr is
-- Emit an error if the constant EXPR is deferred and cannot be used in
-- the current context.
- procedure Check_Constant_Restriction (Expr : Iir)
+ procedure Check_Constant_Restriction (Expr : Iir; Loc : Iir)
is
Lib : Iir;
Cur_Lib : Iir;
@@ -3346,7 +3346,7 @@ package body Sem_Expr is
or else (Get_Kind (Cur_Lib) = Iir_Kind_Package_Body
and then Get_Package (Cur_Lib) = Lib)
then
- Error_Msg_Sem ("invalid use of a deferred constant", Expr);
+ Error_Msg_Sem ("invalid use of a deferred constant", Loc);
end if;
end Check_Constant_Restriction;
@@ -3459,7 +3459,7 @@ package body Sem_Expr is
if Get_Kind (E) = Iir_Kind_Constant_Declaration
and then not Deferred_Constant_Allowed
then
- Check_Constant_Restriction (E);
+ Check_Constant_Restriction (E, Expr);
end if;
E := Name_To_Expression (Expr, A_Type);
return E;