aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-11-30 20:31:11 +0100
committerTristan Gingold <tgingold@free.fr>2018-11-30 20:31:11 +0100
commita95c7301be2f7ee279f1bf9d94cc728abd614f37 (patch)
tree473b1f5add329a705d2c586307d2fc91cd37462e
parent851c5df618127bb2a586e0c3d84407d7b66930e0 (diff)
downloadghdl-a95c7301be2f7ee279f1bf9d94cc728abd614f37.tar.gz
ghdl-a95c7301be2f7ee279f1bf9d94cc728abd614f37.tar.bz2
ghdl-a95c7301be2f7ee279f1bf9d94cc728abd614f37.zip
Fix xref regression on subtype declaration from last patches.
-rw-r--r--src/vhdl/parse.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/parse.adb b/src/vhdl/parse.adb
index 0cfb1b318..13c9d1f29 100644
--- a/src/vhdl/parse.adb
+++ b/src/vhdl/parse.adb
@@ -2869,12 +2869,12 @@ package body Parse is
begin
Decl := Create_Iir (Iir_Kind_Subtype_Declaration);
Set_Parent (Decl, Parent);
- Set_Location (Decl);
Start_Loc := Get_Token_Location;
-- Eat 'subtype'.
Scan;
+ Set_Location (Decl);
if Current_Token = Tok_Identifier then
Set_Identifier (Decl, Current_Identifier);