mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd: gofmt
Change-Id: I243b6521cb91ba5312c0857ca81cf422a7c7b21a Reviewed-on: https://go-review.googlesource.com/c/go/+/203881 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
e071cc4873
commit
7131eb08ec
3 changed files with 35 additions and 35 deletions
|
|
@ -220,7 +220,7 @@ func elimIf(f *Func, loadAddr *sparseSet, dom *Block) bool {
|
|||
// that has the same line number as the Pos for b itself, and
|
||||
// puts a statement mark on it, and returns whether it succeeded
|
||||
// in this operation.
|
||||
setBlockPos := func (b *Block) bool {
|
||||
setBlockPos := func(b *Block) bool {
|
||||
pos := b.Pos
|
||||
for _, v := range b.Values {
|
||||
if pos.SameFileAndLine(v.Pos) && !isPoorStatementOp(v.Op) {
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ func makeLico(line, col uint) lico {
|
|||
}
|
||||
|
||||
func (x lico) Line() uint { return uint(x) >> lineShift }
|
||||
func (x lico) SameLine(y lico) bool { return 0 == (x^y)&^lico(1 << lineShift-1) }
|
||||
func (x lico) SameLine(y lico) bool { return 0 == (x^y)&^lico(1<<lineShift-1) }
|
||||
func (x lico) Col() uint { return uint(x) >> colShift & colMax }
|
||||
func (x lico) IsStmt() uint {
|
||||
if x == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue