File tree 1 file changed +1
-6
lines changed
src/cmd/compile/internal/gc
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -6978,15 +6978,10 @@ func (e *ssafn) SplitInt64(name ssa.LocalSlot) (ssa.LocalSlot, ssa.LocalSlot) {
6978
6978
6979
6979
func (e * ssafn ) SplitStruct (name ssa.LocalSlot , i int ) ssa.LocalSlot {
6980
6980
st := name .Type
6981
- ft := st .FieldType (i )
6982
- var offset int64
6983
- for f := 0 ; f < i ; f ++ {
6984
- offset += st .FieldType (f ).Size ()
6985
- }
6986
6981
// Note: the _ field may appear several times. But
6987
6982
// have no fear, identically-named but distinct Autos are
6988
6983
// ok, albeit maybe confusing for a debugger.
6989
- return e .SplitSlot (& name , "." + st .FieldName (i ), offset , ft )
6984
+ return e .SplitSlot (& name , "." + st .FieldName (i ), st . FieldOff ( i ), st . FieldType ( i ) )
6990
6985
}
6991
6986
6992
6987
func (e * ssafn ) SplitArray (name ssa.LocalSlot ) ssa.LocalSlot {
You can’t perform that action at this time.
0 commit comments