Skip to content

Commit 51d068c

Browse files
authored
Use at-inline instead of _inline_meta. (#246)
1 parent 09fafac commit 51d068c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/runtime.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ end
171171

172172
# we use `jl_value_ptr`, a Julia pseudo-intrinsic that can be used to box and unbox values
173173

174-
@generated function box(val, ::Val{type_name}) where type_name
174+
@inline @generated function box(val, ::Val{type_name}) where type_name
175175
sz = sizeof(val)
176176
allocsz = sz + tag_size
177177

@@ -180,8 +180,6 @@ end
180180
tag = :( type_tag(Val(type_name)) )
181181

182182
quote
183-
Base.@_inline_meta
184-
185183
ptr = malloc($(Csize_t(allocsz)))
186184

187185
# store the type tag

0 commit comments

Comments
 (0)