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
c7f4431d
Commit
c7f4431d
authored
Feb 10, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash on erroneous thunk.
From-SVN: r170031
parent
4a299bf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
gcc/go/gofrontend/statements.cc
+12
-2
No files found.
gcc/go/gofrontend/statements.cc
View file @
c7f4431d
...
...
@@ -1776,8 +1776,13 @@ Thunk_statement::do_determine_types()
// Now that we know the types of the call, build the struct used to
// pass parameters.
Function_type
*
fntype
=
this
->
call_
->
call_expression
()
->
get_function_type
();
Call_expression
*
ce
=
this
->
call_
->
call_expression
();
if
(
ce
==
NULL
)
{
gcc_assert
(
this
->
call_
->
is_error_expression
());
return
;
}
Function_type
*
fntype
=
ce
->
get_function_type
();
if
(
fntype
!=
NULL
&&
!
this
->
is_simple
(
fntype
))
this
->
struct_type_
=
this
->
build_struct
(
fntype
);
}
...
...
@@ -1788,6 +1793,11 @@ void
Thunk_statement
::
do_check_types
(
Gogo
*
)
{
Call_expression
*
ce
=
this
->
call_
->
call_expression
();
if
(
ce
==
NULL
)
{
gcc_assert
(
this
->
call_
->
is_error_expression
());
return
;
}
Function_type
*
fntype
=
ce
->
get_function_type
();
if
(
fntype
!=
NULL
&&
fntype
->
is_method
())
{
...
...
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