aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-09-05 19:52:56 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-09-05 19:52:56 +0000
commit36560e9e15a83b068d3a9dd12816a2529086e69a (patch)
tree17b1662a0ec811b4bf63a3de09bbeab4aeb86486 /gcc/cp/class.c
parent55b2ce1c919ae1a5460f8bfd105f64155853d701 (diff)
downloadgcc-36560e9e15a83b068d3a9dd12816a2529086e69a.zip
gcc-36560e9e15a83b068d3a9dd12816a2529086e69a.tar.gz
gcc-36560e9e15a83b068d3a9dd12816a2529086e69a.tar.bz2
class.c (unreverse_member_declarations): Remove extraneous if.
* class.c (unreverse_member_declarations): Remove extraneous if. * pt.c (push_template_decl_real): Use string concatenation, not \<newline>. Add %<..%>. From-SVN: r251724
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index e5f237c..9e740db 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -7070,8 +7070,7 @@ unreverse_member_declarations (tree t)
if (prev)
{
DECL_CHAIN (TYPE_FIELDS (t)) = x;
- if (prev)
- TYPE_FIELDS (t) = prev;
+ TYPE_FIELDS (t) = prev;
}
}