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
c3b0f4c6
Commit
c3b0f4c6
authored
7 years ago
by
Jason Merrill
Committed by
Jason Merrill
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* error.c (dump_expr): Use is_this_parameter.
From-SVN: r249104
parent
a01f151f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
gcc/cp/ChangeLog
+2
-0
gcc/cp/error.c
+2
-5
No files found.
gcc/cp/ChangeLog
View file @
c3b0f4c6
2017-06-11 Jason Merrill <jason@redhat.com>
* error.c (dump_expr): Use is_this_parameter.
* cp-tree.h, decl2.c, mangle.c, parser.c, pt.c, semantics.c: Use
id_equal.
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/error.c
View file @
c3b0f4c6
...
...
@@ -2194,8 +2194,7 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags)
flags
|
TFF_EXPR_IN_PARENS
);
pp_cxx_dot
(
pp
);
}
else
if
(
TREE_CODE
(
ob
)
!=
PARM_DECL
||
strcmp
(
IDENTIFIER_POINTER
(
DECL_NAME
(
ob
)),
"this"
))
else
if
(
!
is_this_parameter
(
ob
))
{
dump_expr
(
pp
,
ob
,
flags
|
TFF_EXPR_IN_PARENS
);
pp_cxx_arrow
(
pp
);
...
...
@@ -2276,9 +2275,7 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags)
if
(
INDIRECT_REF_P
(
ob
))
{
ob
=
TREE_OPERAND
(
ob
,
0
);
if
(
TREE_CODE
(
ob
)
!=
PARM_DECL
||
(
DECL_NAME
(
ob
)
&&
strcmp
(
IDENTIFIER_POINTER
(
DECL_NAME
(
ob
)),
"this"
)))
if
(
!
is_this_parameter
(
ob
))
{
dump_expr
(
pp
,
ob
,
flags
|
TFF_EXPR_IN_PARENS
);
if
(
TREE_CODE
(
TREE_TYPE
(
ob
))
==
REFERENCE_TYPE
)
...
...
This diff is collapsed.
Click to expand it.
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