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
f8012934
Commit
f8012934
authored
Feb 15, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash on defer of type conversion.
From-SVN: r170196
parent
ed17fc41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
gcc/go/gofrontend/statements.cc
+3
-5
No files found.
gcc/go/gofrontend/statements.cc
View file @
f8012934
...
...
@@ -1778,10 +1778,7 @@ Thunk_statement::do_determine_types()
// pass parameters.
Call_expression
*
ce
=
this
->
call_
->
call_expression
();
if
(
ce
==
NULL
)
{
gcc_assert
(
this
->
call_
->
is_error_expression
());
return
;
}
return
;
Function_type
*
fntype
=
ce
->
get_function_type
();
if
(
fntype
!=
NULL
&&
!
this
->
is_simple
(
fntype
))
this
->
struct_type_
=
this
->
build_struct
(
fntype
);
...
...
@@ -1795,7 +1792,8 @@ Thunk_statement::do_check_types(Gogo*)
Call_expression
*
ce
=
this
->
call_
->
call_expression
();
if
(
ce
==
NULL
)
{
gcc_assert
(
this
->
call_
->
is_error_expression
());
if
(
!
this
->
call_
->
is_error_expression
())
this
->
report_error
(
"expected call expression"
);
return
;
}
Function_type
*
fntype
=
ce
->
get_function_type
();
...
...
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