Commit 96f57186 authored by Rob Pike's avatar Rob Pike

exp/ssa: silence go vet

R=adonovan
CC=golang-dev
https://golang.org/cl/7386052
parent a48ed664
......@@ -586,7 +586,7 @@ func Interpret(mainpkg *ssa.Package, mode Mode, filename string, args []string)
case string:
fmt.Fprintln(os.Stderr, "panic:", p)
default:
fmt.Fprintln(os.Stderr, "panic: unexpected type: %T", p)
fmt.Fprintf(os.Stderr, "panic: unexpected type: %T\n", p)
}
// TODO(adonovan): dump panicking interpreter goroutine?
......
......@@ -233,7 +233,7 @@ func ext۰reflect۰Value۰Len(fn *ssa.Function, args []value) value {
case map[value]value:
return len(v)
default:
panic(fmt.Sprintf("reflect.(Value).Len(%V)", v))
panic(fmt.Sprintf("reflect.(Value).Len(%v)", v))
}
return nil // unreachable
}
......
......@@ -9,7 +9,10 @@ import (
"strconv"
)
var complexZero = types.Complex{new(big.Rat), new(big.Rat)}
var complexZero = types.Complex{
Re: new(big.Rat),
Im: new(big.Rat),
}
// newLiteral returns a new literal of the specified value and type.
// val must be valid according to the specification of Literal.Value.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment