diff --git a/src/cmd/compile/internal/ir/expr.go b/src/cmd/compile/internal/ir/expr.go index 4a2e996569450d..5bd26fc14562f6 100644 --- a/src/cmd/compile/internal/ir/expr.go +++ b/src/cmd/compile/internal/ir/expr.go @@ -24,12 +24,12 @@ type Expr interface { // A miniExpr is a miniNode with extra fields common to expressions. // TODO(rsc): Once we are sure about the contents, compact the bools // into a bit field and leave extra bits available for implementations -// embedding miniExpr. Right now there are ~60 unused bits sitting here. +// embedding miniExpr. Right now there are ~24 unused bits sitting here. type miniExpr struct { miniNode + flags bitset8 typ *types.Type init Nodes // TODO(rsc): Don't require every Node to have an init - flags bitset8 } const ( diff --git a/src/cmd/compile/internal/ir/sizeof_test.go b/src/cmd/compile/internal/ir/sizeof_test.go index ea7429631527b5..1715bad0c147b8 100644 --- a/src/cmd/compile/internal/ir/sizeof_test.go +++ b/src/cmd/compile/internal/ir/sizeof_test.go @@ -21,7 +21,8 @@ func TestSizeof(t *testing.T) { _64bit uintptr // size on 64bit platforms }{ {Func{}, 184, 312}, - {Name{}, 96, 168}, + {Name{}, 96, 160}, + {miniExpr{}, 32, 48}, } for _, tt := range tests {