We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 630a551 commit 86ae65bCopy full SHA for 86ae65b
src/datatype.c
@@ -518,11 +518,10 @@ void jl_compute_field_offsets(jl_datatype_t *st)
518
// now finish deciding if this instantiation qualifies for special properties
519
assert(!isbitstype || st->layout->npointers == 0); // the definition of isbits
520
if (isinlinealloc && st->layout->npointers > 0) {
521
- //if (st->ninitialized != nfields)
522
- // isinlinealloc = 0;
523
- //else if (st->layout->fielddesc_type != 0) // GC only implements support for this
524
525
- isinlinealloc = 0;
+ if (st->ninitialized != nfields)
+ isinlinealloc = 0;
+ else if (st->layout->fielddesc_type != 0) // GC only implements support for this
526
}
527
st->isbitstype = isbitstype;
528
st->isinlinealloc = isinlinealloc;
0 commit comments