From 944405539cc4b79476b6ccf1a5726fb4505306b2 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 10 Jan 2023 21:54:42 +0100 Subject: synth: fix memory allocation in predefined function calls --- src/synth/synth-vhdl_eval.adb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/synth/synth-vhdl_eval.adb') diff --git a/src/synth/synth-vhdl_eval.adb b/src/synth/synth-vhdl_eval.adb index 78003539e..ddc9e7052 100644 --- a/src/synth/synth-vhdl_eval.adb +++ b/src/synth/synth-vhdl_eval.adb @@ -86,6 +86,8 @@ package body Synth.Vhdl_Eval is return Prev; end if; + -- TODO: should be directly allocated on the expr_pool to avoid + -- a copy. return Create_Vec_Type_By_Length (Prev.W, Prev.Arr_El); end Create_Res_Bound; -- cgit v1.2.3