summaryrefslogtreecommitdiff
path: root/src/locators
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2024-10-31 17:27:55 +1300
committerBen Bridle <ben@derelict.engineering>2024-10-31 17:29:30 +1300
commit617c7df875171cd7b14983b14f4368120f265cce (patch)
tree10460a874243e2fdba20233c875171775742ef63 /src/locators
parent65d409e389d437d506a841ff5eb0a2a5d977a7d5 (diff)
downloadbedrock-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