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
b68a9b10
Commit
b68a9b10
authored
Feb 23, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing type traversals.
From-SVN: r170427
parent
7fcf46f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
gcc/go/gofrontend/expressions.cc
+13
-0
gcc/go/gofrontend/statements.cc
+3
-0
No files found.
gcc/go/gofrontend/expressions.cc
View file @
b68a9b10
...
@@ -2357,6 +2357,9 @@ class Const_expression : public Expression
...
@@ -2357,6 +2357,9 @@ class Const_expression : public Expression
check_for_init_loop
();
check_for_init_loop
();
protected
:
protected
:
int
do_traverse
(
Traverse
*
);
Expression
*
Expression
*
do_lower
(
Gogo
*
,
Named_object
*
,
int
);
do_lower
(
Gogo
*
,
Named_object
*
,
int
);
...
@@ -2412,6 +2415,16 @@ class Const_expression : public Expression
...
@@ -2412,6 +2415,16 @@ class Const_expression : public Expression
mutable
bool
seen_
;
mutable
bool
seen_
;
};
};
// Traversal.
int
Const_expression
::
do_traverse
(
Traverse
*
traverse
)
{
if
(
this
->
type_
!=
NULL
)
return
Type
::
traverse
(
this
->
type_
,
traverse
);
return
TRAVERSE_CONTINUE
;
}
// Lower a constant expression. This is where we convert the
// Lower a constant expression. This is where we convert the
// predeclared constant iota into an integer value.
// predeclared constant iota into an integer value.
...
...
gcc/go/gofrontend/statements.cc
View file @
b68a9b10
...
@@ -318,6 +318,9 @@ Temporary_statement::get_decl() const
...
@@ -318,6 +318,9 @@ Temporary_statement::get_decl() const
int
int
Temporary_statement
::
do_traverse
(
Traverse
*
traverse
)
Temporary_statement
::
do_traverse
(
Traverse
*
traverse
)
{
{
if
(
this
->
type_
!=
NULL
&&
this
->
traverse_type
(
traverse
,
this
->
type_
)
==
TRAVERSE_EXIT
)
return
TRAVERSE_EXIT
;
if
(
this
->
init_
==
NULL
)
if
(
this
->
init_
==
NULL
)
return
TRAVERSE_CONTINUE
;
return
TRAVERSE_CONTINUE
;
else
else
...
...
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