diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-02-04 19:02:08 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-02-04 19:02:08 +0100 |
commit | 6c6eb10a9c547ae9ba286aaa686e518b55a9a994 (patch) | |
tree | 50e92f218cf6c40fca7cad0a895d7fe2f5fb82ba /src | |
parent | ca25384d0c55563d5758cd6d548662947bd699df (diff) | |
download | ghdl-6c6eb10a9c547ae9ba286aaa686e518b55a9a994.tar.gz ghdl-6c6eb10a9c547ae9ba286aaa686e518b55a9a994.tar.bz2 ghdl-6c6eb10a9c547ae9ba286aaa686e518b55a9a994.zip |
vhdl-sem: improve error location for unknown entity.
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/vhdl-sem.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem.adb b/src/vhdl/vhdl-sem.adb index 4ce298b40..8a54f2e5e 100644 --- a/src/vhdl/vhdl-sem.adb +++ b/src/vhdl/vhdl-sem.adb @@ -122,7 +122,7 @@ package body Vhdl.Sem is Entity := Load_Primary_Unit (Library, Get_Identifier (Name), Library_Unit); if Entity = Null_Iir then - Error_Msg_Sem (+Library_Unit, "entity %n was not analysed", +Name); + Error_Msg_Sem (+Name, "entity %n was not analysed", +Name); return Null_Iir; end if; Entity := Get_Library_Unit (Entity); |