File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -1277,17 +1277,6 @@ func (v Value) Field(i int) Value {
1277
1277
fl |= flagStickyRO
1278
1278
}
1279
1279
}
1280
- if fl & flagIndir == 0 && typ .Size () == 0 {
1281
- // Special case for picking a field out of a direct struct.
1282
- // A direct struct must have a pointer field and possibly a
1283
- // bunch of zero-sized fields. We must return the zero-sized
1284
- // fields indirectly, as only ptr-shaped things can be direct.
1285
- // See issue 74935.
1286
- // We use nil instead of v.ptr as it doesn't matter and
1287
- // we can avoid pinning a possibly now-unused object.
1288
- return Value {typ , nil , fl | flagIndir }
1289
- }
1290
-
1291
1280
// Either flagIndir is set and v.ptr points at struct,
1292
1281
// or flagIndir is not set and v.ptr is the actual struct data.
1293
1282
// In the former case, we want v.ptr + offset.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments