aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyGHDL/dom/_Utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyGHDL/dom/_Utils.py b/pyGHDL/dom/_Utils.py
index e0d97f892..38a85c0c3 100644
--- a/pyGHDL/dom/_Utils.py
+++ b/pyGHDL/dom/_Utils.py
@@ -77,7 +77,7 @@ def GetModeOfNode(node: Iir) -> Mode:
def GetPositionOfNode(node: Iir) -> Position:
location = nodes.Get_Location(node)
file = files_map.Location_To_File(location)
- fileName = name_table.Get_Name_Ptr(file)
+ fileName = name_table.Get_Name_Ptr(files_map.Get_File_Name(file))
# position = files_map.Location_File_To_Pos(location, file)
line = files_map.Location_File_To_Line(location, file)
column = files_map.Location_File_Line_To_Offset(location, file, line)