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
42cbb8c1
Commit
42cbb8c1
authored
Dec 14, 2010
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash on invalid closure.
From-SVN: r167821
parent
cad51bed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
gcc/go/gofrontend/gogo-tree.cc
+11
-6
No files found.
gcc/go/gofrontend/gogo-tree.cc
View file @
42cbb8c1
...
...
@@ -1313,14 +1313,19 @@ Function::get_or_make_decl(Gogo* gogo, Named_object* no, tree id)
push_struct_function
(
decl
);
tree
closure_decl
=
this
->
closure_var_
->
get_tree
(
gogo
,
no
);
if
(
closure_decl
==
error_mark_node
)
this
->
fndecl_
=
error_mark_node
;
else
{
DECL_ARTIFICIAL
(
closure_decl
)
=
1
;
DECL_IGNORED_P
(
closure_decl
)
=
1
;
TREE_USED
(
closure_decl
)
=
1
;
DECL_ARG_TYPE
(
closure_decl
)
=
TREE_TYPE
(
closure_decl
);
TREE_READONLY
(
closure_decl
)
=
1
;
DECL_ARTIFICIAL
(
closure_decl
)
=
1
;
DECL_IGNORED_P
(
closure_decl
)
=
1
;
TREE_USED
(
closure_decl
)
=
1
;
DECL_ARG_TYPE
(
closure_decl
)
=
TREE_TYPE
(
closure_decl
);
TREE_READONLY
(
closure_decl
)
=
1
;
DECL_STRUCT_FUNCTION
(
decl
)
->
static_chain_decl
=
closure_decl
;
}
DECL_STRUCT_FUNCTION
(
decl
)
->
static_chain_decl
=
closure_decl
;
pop_cfun
();
}
}
...
...
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