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
82701bd2
Commit
82701bd2
authored
Jan 04, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't create erroneous COND_EXPR.
From-SVN: r168485
parent
eb83e2d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
gcc/go/gofrontend/statements.cc
+13
-8
No files found.
gcc/go/gofrontend/statements.cc
View file @
82701bd2
...
...
@@ -2985,14 +2985,19 @@ tree
If_statement
::
do_get_tree
(
Translate_context
*
context
)
{
gcc_assert
(
this
->
cond_
==
NULL
||
this
->
cond_
->
type
()
->
is_boolean_type
());
tree
ret
=
build3
(
COND_EXPR
,
void_type_node
,
(
this
->
cond_
==
NULL
?
boolean_true_node
:
this
->
cond_
->
get_tree
(
context
)),
this
->
then_block_
->
get_tree
(
context
),
(
this
->
else_block_
==
NULL
?
NULL_TREE
:
this
->
else_block_
->
get_tree
(
context
)));
tree
cond_tree
=
(
this
->
cond_
==
NULL
?
boolean_true_node
:
this
->
cond_
->
get_tree
(
context
));
tree
then_tree
=
this
->
then_block_
->
get_tree
(
context
);
tree
else_tree
=
(
this
->
else_block_
==
NULL
?
NULL_TREE
:
this
->
else_block_
->
get_tree
(
context
));
if
(
cond_tree
==
error_mark_node
||
then_tree
==
error_mark_node
||
else_tree
==
error_mark_node
)
return
error_mark_node
;
tree
ret
=
build3
(
COND_EXPR
,
void_type_node
,
cond_tree
,
then_tree
,
else_tree
);
SET_EXPR_LOCATION
(
ret
,
this
->
location
());
return
ret
;
}
...
...
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