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
b18fdafb
Commit
b18fdafb
authored
Jun 15, 2015
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Don't crash when dumping ast of empty block.
Fixes golang/go#10420. From-SVN: r224487
parent
8e6dce3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gcc/go/gofrontend/ast-dump.cc
+7
-2
No files found.
gcc/go/gofrontend/ast-dump.cc
View file @
b18fdafb
...
...
@@ -65,6 +65,12 @@ class Ast_dump_traverse_statements : public Traverse
int
Ast_dump_traverse_blocks_and_functions
::
block
(
Block
*
block
)
{
if
(
block
==
NULL
)
{
this
->
ast_dump_context_
->
ostream
()
<<
std
::
endl
;
return
TRAVERSE_EXIT
;
}
this
->
ast_dump_context_
->
print_indent
();
this
->
ast_dump_context_
->
ostream
()
<<
"{"
<<
std
::
endl
;
this
->
ast_dump_context_
->
indent
();
...
...
@@ -466,4 +472,4 @@ Ast_dump_context::dump_to_stream(const Expression* expr, std::ostream* out)
{
Ast_dump_context
adc
(
out
,
false
);
expr
->
dump_expression
(
&
adc
);
}
\ No newline at end of file
}
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