diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-05-21 21:43:37 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-05-21 21:43:37 +0200 |
commit | b96e9b2d90f9c586b50c442b7fd1e4bb9972ac0d (patch) | |
tree | 5542b9ac3ec676e1df558f3ce0bb8070d56ff30b /src/synth/netlists-memories.adb | |
parent | baca4659950b461dcbfec08046ad6360362bcf8b (diff) | |
download | ghdl-b96e9b2d90f9c586b50c442b7fd1e4bb9972ac0d.tar.gz ghdl-b96e9b2d90f9c586b50c442b7fd1e4bb9972ac0d.tar.bz2 ghdl-b96e9b2d90f9c586b50c442b7fd1e4bb9972ac0d.zip |
netlists-memories: set location on utrunc. Fix #1332
Diffstat (limited to 'src/synth/netlists-memories.adb')
-rw-r--r-- | src/synth/netlists-memories.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/netlists-memories.adb b/src/synth/netlists-memories.adb index c127b940f..71d733826 100644 --- a/src/synth/netlists-memories.adb +++ b/src/synth/netlists-memories.adb @@ -347,7 +347,7 @@ package body Netlists.Memories is if Addr_W > Max_W then -- Need to truncate. Sub_Addr1 := Build2_Trunc - (Ctxt, Id_Utrunc, Sub_Addr, Max_W, No_Location); + (Ctxt, Id_Utrunc, Sub_Addr, Max_W, Get_Location (Inst)); else Sub_Addr1 := Sub_Addr; end if; |