aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChimrod <>2024-11-15 18:45:34 +0100
committerChimrod <>2024-11-15 18:45:34 +0100
commit9e7b9de243e488e15d2c7528ce64e569eba8add2 (patch)
treea2a69a6f49a3da68c44f7f0012b56fe9923c7781 /lib
parent75be18b30ebd08dc28c0c8df72983126b7a126a7 (diff)
Fix a correction in the location identification in the unused variable parser
Diffstat (limited to 'lib')
-rw-r--r--lib/syntax/write_only.ml2
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