Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 9d776ae

Browse files
committed
don't inline at_noinline methods
1 parent abbc3fd commit 9d776ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/context.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ using Cassette
1717

1818
function transform(ctx, ref)
1919
ci = ref.code_info
20-
ci.inlineable = true
20+
noinline = any(@nospecialize(x) -> Core.Compiler.isexpr(x, :meta) && x.args[1] == :noinline, CI.code)
21+
if !noinline
22+
ci.inlineable = true
23+
end
2124
return ci
2225
end
2326
const InlinePass = Cassette.@pass transform

0 commit comments

Comments
 (0)