We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f50a560 commit ad54423Copy full SHA for ad54423
src/irgen.jl
@@ -412,7 +412,16 @@ if VERSION >= v"1.7.0-DEV.204"
412
function is_inlinealloc(T::Type)
413
mayinlinealloc = (T.name.flags >> 2) & 1 == true
414
# FIXME: To simple
415
- return mayinlinealloc
+ if mayinlinealloc
416
+ if !Base.datatype_pointerfree(T)
417
+ t_name(dt::DataType)=dt.name
418
+ if t_name(T).n_uninitialized != 0
419
+ return false
420
+ end
421
422
+ return true
423
424
425
end
426
else
427
0 commit comments