diff options
author | Chimrod <> | 2024-11-15 18:45:34 +0100 |
---|---|---|
committer | Chimrod <> | 2024-11-15 18:45:34 +0100 |
commit | 9e7b9de243e488e15d2c7528ce64e569eba8add2 (patch) | |
tree | a2a69a6f49a3da68c44f7f0012b56fe9923c7781 /lib | |
parent | 75be18b30ebd08dc28c0c8df72983126b7a126a7 (diff) |
Fix a correction in the location identification in the unused variable parser
Diffstat (limited to 'lib')
-rw-r--r-- | lib/syntax/write_only.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/syntax/write_only.ml b/lib/syntax/write_only.ml index e77ad88..ec2e368 100644 --- a/lib/syntax/write_only.ml +++ b/lib/syntax/write_only.ml @@ -180,7 +180,7 @@ module Location = struct let location : context -> S.pos -> instruction list -> t = fun context pos instructions -> - let file_name = (fst pos).Lexing.pos_fname in + let file_name = (snd pos).Lexing.pos_fname in ignore pos; ignore context; let () = List.iter ~f:(fun v -> v file_name context) instructions in |