Skip to content

Commit 7c8e4d7

Browse files
Zentriktopolarity
andauthored
Only force rand to be outlined
Doesn't seem necessary to outline the other function calls. Co-authored-by: Cody Tapscott <[email protected]>
1 parent 624d863 commit 7c8e4d7

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 = (@noinline rand()) < 0 ? val : Stats(bench)
11501150
end
11511151
return stats::Stats
11521152
catch

0 commit comments

Comments
 (0)