Skip to content

Commit fac5896

Browse files
mshinwellccasin
authored andcommitted
Minor attribute fixes from flambda-backend
1 parent 75f402e commit fac5896

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lambda/translattribute.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ let is_tmc_attribute =
4545
[ ["tail_mod_cons"; "ocaml.tail_mod_cons"], true ]
4646

4747
let is_poll_attribute =
48-
[ ["poll"], true ]
48+
[ ["poll"; "ocaml.poll"], true ]
4949

5050
let find_attribute p attributes =
5151
let inline_attribute = Builtin_attributes.filter_attributes p attributes in

parsing/builtin_attributes.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ let warn_unused () =
4949
let builtin_attrs =
5050
[ "inline"; "ocaml.inline"
5151
; "inlined"; "ocaml.inlined"
52+
; "specialise"; "ocaml.specialise"
53+
; "specialised"; "ocaml.specialised"
5254
; "tailcall"; "ocaml.tailcall"
5355
; "unrolled"; "ocaml.unrolled"
5456
; "error"; "ocaml.error"
@@ -79,6 +81,7 @@ let builtin_attrs =
7981
; "include_functor"; "ocaml.include_functor"; "extension.include_functor"
8082
; "noalloc"; "ocaml.noalloc"
8183
; "untagged"; "ocaml.untagged"
84+
; "poll"; "ocaml.poll"
8285
]
8386

8487
let builtin_attrs =

0 commit comments

Comments
 (0)