Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
762c2799
Commit
762c2799
authored
Mar 09, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Correct handling of sink receiver.
From-SVN: r185127
parent
896977b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
gcc/go/gofrontend/gogo.cc
+2
-3
No files found.
gcc/go/gofrontend/gogo.cc
View file @
762c2799
...
...
@@ -628,7 +628,7 @@ Gogo::start_function(const std::string& name, Function_type* type,
Variable
*
this_param
=
new
Variable
(
receiver
->
type
(),
NULL
,
false
,
true
,
true
,
location
);
std
::
string
rname
=
receiver
->
name
();
if
(
rname
.
empty
())
if
(
rname
.
empty
()
||
Gogo
::
is_sink_name
(
rname
)
)
{
// We need to give receivers a name since they wind up in
// DECL_ARGUMENTS. FIXME.
...
...
@@ -638,8 +638,7 @@ Gogo::start_function(const std::string& name, Function_type* type,
++
count
;
rname
=
buf
;
}
if
(
!
Gogo
::
is_sink_name
(
rname
))
block
->
bindings
()
->
add_variable
(
rname
,
NULL
,
this_param
);
block
->
bindings
()
->
add_variable
(
rname
,
NULL
,
this_param
);
}
const
Typed_identifier_list
*
parameters
=
type
->
parameters
();
...
...
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