Skip to content

Commit 66dac41

Browse files
aviateskmlechu
andauthored
compat: support Base.Experimental.@force_compile (#56)
`:meta :force_compile` is one of the forms known by the compiler. Also adds `:doc` to the list. Co-authored-by: Em Chu <[email protected]> --------- Co-authored-by: Em Chu <[email protected]>
1 parent 99f623d commit 66dac41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compat.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,15 +420,15 @@ function _insert_convert_expr(@nospecialize(e), graph::SyntaxGraph, src::SourceA
420420
elseif e.args[1] in (:inline, :noinline, :generated, :generated_only,
421421
:max_methods, :optlevel, :toplevel, :push_loc, :pop_loc,
422422
:aggressive_constprop, :specialize, :compile, :infer,
423-
:nospecializeinfer)
423+
:nospecializeinfer, :force_compile, :doc)
424424
# TODO: Some need to be handled in lowering
425425
child_exprs[1] = Expr(:quoted_symbol, e.args[1])
426426
else
427427
# Can't throw a hard error; it is explicitly tested that meta can take arbitrary keys.
428428
@error("Unknown meta form at $src: `$e`\n$(sprint(dump, e))")
429429
child_exprs[1] = Expr(:quoted_symbol, e.args[1])
430430
end
431-
elseif e.head === :scope_layer
431+
elseif e.head === :scope_layer
432432
@assert nargs === 2
433433
@assert e.args[1] isa Symbol
434434
@assert e.args[2] isa LayerId

0 commit comments

Comments
 (0)