aboutsummaryrefslogtreecommitdiffstats
path: root/src/psl/psl-cse.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-29 08:24:37 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-29 08:24:37 +0200
commit4cdf1cee17b7f06ec188dd0f7136fbad498953cb (patch)
tree9d1db74fa2021565aacee3fdacfe364223fab7fa /src/psl/psl-cse.adb
parentad4e2f38bd77ace5333b6849dd5564dcaba6bfc6 (diff)
downloadghdl-4cdf1cee17b7f06ec188dd0f7136fbad498953cb.tar.gz
ghdl-4cdf1cee17b7f06ec188dd0f7136fbad498953cb.tar.bz2
ghdl-4cdf1cee17b7f06ec188dd0f7136fbad498953cb.zip
psl: set locations in CSE. Fix #1272
Diffstat (limited to 'src/psl/psl-cse.adb')
-rw-r--r--src/psl/psl-cse.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/psl/psl-cse.adb b/src/psl/psl-cse.adb
index 93cd85452..599031f27 100644
--- a/src/psl/psl-cse.adb
+++ b/src/psl/psl-cse.adb
@@ -132,6 +132,7 @@ package body PSL.CSE is
Res := Create_Node (N_And_Bool);
Set_Left (Res, L);
Set_Right (Res, R);
+ Copy_Location (Res, L);
Set_Hash_Link (Res, Head);
Set_Hash (Res, Hash);
Hash_Table (Hash mod Hash_Table'Length) := Res;
@@ -175,6 +176,7 @@ package body PSL.CSE is
Res := Create_Node (N_Or_Bool);
Set_Left (Res, L);
Set_Right (Res, R);
+ Copy_Location (Res, L);
Set_Hash_Link (Res, Head);
Set_Hash (Res, Hash);
Hash_Table (Hash mod Hash_Table'Length) := Res;
@@ -211,6 +213,7 @@ package body PSL.CSE is
Res := Create_Node (N_Not_Bool);
Set_Boolean (Res, N);
+ Copy_Location (Res, N);
Set_Hash_Link (Res, Head);
Set_Hash (Res, Hash);
Hash_Table (Hash mod Hash_Table'Length) := Res;