aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/elab-vhdl_expr.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-08-21 14:10:08 +0200
committerTristan Gingold <tgingold@free.fr>2022-08-21 14:10:08 +0200
commit00ca739542639e5de0578bf1e62f04e380772f52 (patch)
tree4cf24896c94e2f28ada3528485257c1eab110f85 /src/synth/elab-vhdl_expr.adb
parent78b29a7a47636cb2fda1112f3e2ec8167c3e7d66 (diff)
downloadghdl-00ca739542639e5de0578bf1e62f04e380772f52.tar.gz
ghdl-00ca739542639e5de0578bf1e62f04e380772f52.tar.bz2
ghdl-00ca739542639e5de0578bf1e62f04e380772f52.zip
synth: factorize code for synth_subtype_conversion
Diffstat (limited to 'src/synth/elab-vhdl_expr.adb')
-rw-r--r--src/synth/elab-vhdl_expr.adb5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/synth/elab-vhdl_expr.adb b/src/synth/elab-vhdl_expr.adb
index d1b44fe78..391a75c92 100644
--- a/src/synth/elab-vhdl_expr.adb
+++ b/src/synth/elab-vhdl_expr.adb
@@ -20,7 +20,7 @@ with Types; use Types;
with Name_Table;
with Str_Table;
-with Netlists.Builders;
+with Netlists;
with Vhdl.Errors; use Vhdl.Errors;
with Vhdl.Utils; use Vhdl.Utils;
@@ -101,8 +101,7 @@ package body Elab.Vhdl_Expr is
Bounds : Boolean;
Loc : Node) return Valtyp is
begin
- return Synth_Subtype_Conversion
- (Netlists.Builders.No_Context, Vt, Dtype, Bounds, Loc);
+ return Synth_Subtype_Conversion (null, Vt, Dtype, Bounds, Loc);
end Exec_Subtype_Conversion;
function Exec_Value_Attribute (Syn_Inst : Synth_Instance_Acc; Attr : Node)