x/tools/go: gofmt -s -w
Change-Id: I978b981d95909f2590c1e1db05e8a95e232a67d5 Reviewed-on: https://go-review.googlesource.com/32794 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
5984771995
commit
be0fcc31ae
|
@ -533,7 +533,7 @@ func (h *hvn) markIndirectNodes() {
|
||||||
if tArray, ok := h.a.nodes[id].typ.(*types.Array); ok {
|
if tArray, ok := h.a.nodes[id].typ.(*types.Array); ok {
|
||||||
// Mark the array element nodes indirect.
|
// Mark the array element nodes indirect.
|
||||||
// (Skip past the identity field.)
|
// (Skip past the identity field.)
|
||||||
for _ = range h.a.flatten(tArray.Elem()) {
|
for range h.a.flatten(tArray.Elem()) {
|
||||||
id++
|
id++
|
||||||
h.markIndirect(onodeid(id), "array elem")
|
h.markIndirect(onodeid(id), "array elem")
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ func chan4() {
|
||||||
print(k) // @pointsto main.incr
|
print(k) // @pointsto main.incr
|
||||||
}
|
}
|
||||||
// Exercise constraint generation (regtest for a crash).
|
// Exercise constraint generation (regtest for a crash).
|
||||||
for _ = range chA {
|
for range chA {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ func (b *builder) logicalBinop(fn *Function, e *ast.BinaryExpr) Value {
|
||||||
|
|
||||||
// All edges from e.X to done carry the short-circuit value.
|
// All edges from e.X to done carry the short-circuit value.
|
||||||
var edges []Value
|
var edges []Value
|
||||||
for _ = range done.Preds {
|
for range done.Preds {
|
||||||
edges = append(edges, short)
|
edges = append(edges, short)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue