Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
1b7881ad
Commit
1b7881ad
authored
Jan 08, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
type T []int var a []int var t = T(a) R=ken OCL=22341 CL=22341
parent
d54abad0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
src/cmd/6g/cgen.c
src/cmd/6g/cgen.c
+6
-0
src/cmd/gc/walk.c
src/cmd/gc/walk.c
+3
-1
No files found.
src/cmd/6g/cgen.c
View file @
1b7881ad
...
...
@@ -415,6 +415,12 @@ agen(Node *n, Node *res)
fatal
(
"agen: unknown op %N"
,
n
);
break
;
case
OCONV
:
if
(
!
eqtype
(
n
->
type
,
nl
->
type
,
0
))
fatal
(
"agen: non-trivial OCONV"
);
agen
(
nl
,
res
);
return
;
case
OCALLMETH
:
cgen_callmeth
(
n
,
0
);
cgen_aret
(
n
,
res
);
...
...
src/cmd/gc/walk.c
View file @
1b7881ad
...
...
@@ -563,8 +563,10 @@ loop:
// nil conversion
if
(
eqtype
(
t
,
l
->
type
,
0
))
{
if
(
l
->
op
!=
ONAME
)
if
(
l
->
op
!=
ONAME
)
{
indir
(
n
,
l
);
n
->
type
=
t
;
}
goto
ret
;
}
...
...
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