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
3338038a
Commit
3338038a
authored
Dec 09, 2010
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid some crashes on erroneous programs.
From-SVN: r167670
parent
d3de3f21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
gcc/go/gofrontend/expressions.cc
+8
-1
gcc/go/gofrontend/types.cc
+2
-0
No files found.
gcc/go/gofrontend/expressions.cc
View file @
3338038a
...
...
@@ -1146,7 +1146,11 @@ Func_expression::get_tree_without_closure(Gogo* gogo)
}
Named_object
*
no
=
this
->
function_
;
tree
id
=
this
->
function_
->
get_id
(
gogo
);
tree
id
=
no
->
get_id
(
gogo
);
if
(
id
==
error_mark_node
)
return
error_mark_node
;
tree
fndecl
;
if
(
no
->
is_function
())
fndecl
=
no
->
func_value
()
->
get_or_make_decl
(
gogo
,
no
,
id
);
...
...
@@ -1155,6 +1159,9 @@ Func_expression::get_tree_without_closure(Gogo* gogo)
else
gcc_unreachable
();
if
(
fndecl
==
error_mark_node
)
return
error_mark_node
;
return
build_fold_addr_expr_loc
(
this
->
location
(),
fndecl
);
}
...
...
gcc/go/gofrontend/types.cc
View file @
3338038a
...
...
@@ -6864,6 +6864,8 @@ Named_type::do_get_tree(Gogo* gogo)
t
=
make_node
(
RECORD_TYPE
);
this
->
named_tree_
=
t
;
t
=
this
->
type_
->
interface_type
()
->
fill_in_tree
(
gogo
,
t
);
if
(
t
==
error_mark_node
)
return
error_mark_node
;
}
break
;
...
...
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