mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd: avoid unnecessary type conversions
CL generated mechanically with github.com/mdempsky/unconvert. Also updated cmd/compile/internal/ssa/gen/*.rules manually. Change-Id: If721ef73cf0771ae83ce7e2d11623fc8d9155768 Reviewed-on: https://go-review.googlesource.com/97075 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
f4d9c30901
commit
0c471dfae2
29 changed files with 166 additions and 166 deletions
|
|
@ -95,7 +95,7 @@ func (state *stateAtPC) reset(live []liveSlot) {
|
|||
reg := uint8(TrailingZeros64(mask))
|
||||
mask &^= 1 << reg
|
||||
|
||||
registers[reg] = append(registers[reg], SlotID(live.slot))
|
||||
registers[reg] = append(registers[reg], live.slot)
|
||||
}
|
||||
}
|
||||
state.slots, state.registers = slots, registers
|
||||
|
|
@ -636,7 +636,7 @@ func (state *debugState) processValue(v *Value, vSlots []SlotID, vReg *Register)
|
|||
state.f.Fatalf("at %v: slot %v in register %v with no location entry", v, state.slots[slot], &state.registers[reg])
|
||||
continue
|
||||
}
|
||||
regs := last.Registers &^ (1 << uint8(reg))
|
||||
regs := last.Registers &^ (1 << reg)
|
||||
setSlot(slot, VarLoc{regs, last.StackOffset})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue