aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-vhdl_eval.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-10 21:54:42 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-10 21:54:42 +0100
commit944405539cc4b79476b6ccf1a5726fb4505306b2 (patch)
tree900856ab94aa24a893a1d6080121f3da5ae70b9a /src/synth/synth-vhdl_eval.adb
parentd321ec7a8a3aae1463cf22d68d13ac9a1c951caf (diff)
downloadghdl-944405539cc4b79476b6ccf1a5726fb4505306b2.tar.gz
ghdl-944405539cc4b79476b6ccf1a5726fb4505306b2.tar.bz2
ghdl-944405539cc4b79476b6ccf1a5726fb4505306b2.zip
synth: fix memory allocation in predefined function calls
Diffstat (limited to 'src/synth/synth-vhdl_eval.adb')
-rw-r--r--src/synth/synth-vhdl_eval.adb2
1 files changed, 2 insertions, 0 deletions
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;