diff options
author | Ben Bridle <ben@derelict.engineering> | 2024-10-31 17:27:55 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2024-10-31 17:29:30 +1300 |
commit | 617c7df875171cd7b14983b14f4368120f265cce (patch) | |
tree | 10460a874243e2fdba20233c875171775742ef63 /src/locators | |
parent | 65d409e389d437d506a841ff5eb0a2a5d977a7d5 (diff) | |
download | bedrock-asm-617c7df875171cd7b14983b14f4368120f265cce.zip |
Fix reported source location in symbol redefinition errors
The reported location of the original definition of a redefined symbol
was incorrect. The index stored alongside a redefined symbol was the
ID of the source unit which owns the original definition, but in the
error printing code it was being treated as the index of the original
definition of that symbol in the definitions list of the resolver. This
was causing the reported location of the original definition to be that
of an unrelated symbol.
To fix this issue, the index stored alongside a redefined symbol is now
the index of the original definition of that symbol in the definitions
list of the resolver.
Diffstat (limited to 'src/locators')
0 files changed, 0 insertions, 0 deletions