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
e495c136
Commit
e495c136
authored
Dec 15, 2010
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash on tuple initialization from erroneous channel.
From-SVN: r167882
parent
81ef977e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
gcc/go/gofrontend/gogo.cc
+4
-1
No files found.
gcc/go/gofrontend/gogo.cc
View file @
e495c136
...
...
@@ -3126,7 +3126,10 @@ Variable::type_from_tuple(Expression* expr, bool report_error) const
else
if
(
expr
->
receive_expression
()
!=
NULL
)
{
Expression
*
channel
=
expr
->
receive_expression
()
->
channel
();
return
channel
->
type
()
->
channel_type
()
->
element_type
();
Type
*
channel_type
=
channel
->
type
();
if
(
channel_type
->
is_error_type
())
return
Type
::
make_error_type
();
return
channel_type
->
channel_type
()
->
element_type
();
}
else
{
...
...
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