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 00bf24f commit 0ab038aCopy full SHA for 0ab038a
src/cmd/compile/internal/abi/abiutils.go
@@ -661,9 +661,7 @@ func (state *assignState) tryAllocRegs(typ *types.Type) []RegIndex {
661
func (pa *ABIParamAssignment) ComputePadding(storage []uint64) []uint64 {
662
nr := len(pa.Registers)
663
padding := storage[:nr]
664
- for i := 0; i < nr; i++ {
665
- padding[i] = 0
666
- }
+ clear(padding)
667
if pa.Type.Kind() != types.TSTRUCT || nr == 0 {
668
return padding
669
}
0 commit comments