Skip to content

Commit 57ae8ad

Browse files
committed
Remove @noinline for Julia 1.6 / 1.7
Apparently call-site `@noinline` support was added in the same release that `Base.donotdelete` was introduced (1.8), so trying to use this here just leads to breakage.
1 parent 2e35b2d commit 57ae8ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinuxPerf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ macro pstats(args...)
11461146
Base.donotdelete(val)
11471147
stats = Stats(bench)
11481148
else
1149-
stats = (@noinline rand()) < 0 ? val : Stats(bench)
1149+
stats = rand() < 0 ? val : Stats(bench)
11501150
end
11511151
return stats::Stats
11521152
catch

0 commit comments

Comments
 (0)