Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
96f57186
Commit
96f57186
authored
Feb 22, 2013
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/ssa: silence go vet
R=adonovan CC=golang-dev
https://golang.org/cl/7386052
parent
a48ed664
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
interp.go
src/pkg/exp/ssa/interp/interp.go
+1
-1
reflect.go
src/pkg/exp/ssa/interp/reflect.go
+1
-1
literal.go
src/pkg/exp/ssa/literal.go
+4
-1
No files found.
src/pkg/exp/ssa/interp/interp.go
View file @
96f57186
...
...
@@ -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
.
Fprint
ln
(
os
.
Stderr
,
"panic: unexpected type: %T
"
,
p
)
fmt
.
Fprint
f
(
os
.
Stderr
,
"panic: unexpected type: %T
\n
"
,
p
)
}
// TODO(adonovan): dump panicking interpreter goroutine?
...
...
src/pkg/exp/ssa/interp/reflect.go
View file @
96f57186
...
...
@@ -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
}
...
...
src/pkg/exp/ssa/literal.go
View file @
96f57186
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment