Message ID | 20190211192748.GP3884@redhat.com |
---|---|
State | New |
Headers | show |
Series | Trivial C++ PATCH to remove commented code | expand |
OK. On 2/11/19 2:27 PM, Marek Polacek wrote: > This I don't like. > > Obvious, but ok? > > 2019-02-11 Marek Polacek <polacek@redhat.com> > > * typeck2.c (digest_init_r): Remove commented code. > > --- gcc/cp/typeck2.c > +++ gcc/cp/typeck2.c > @@ -1099,7 +1099,6 @@ digest_init_r (tree type, tree init, int nested, int flags, > > tree typ1 = TYPE_MAIN_VARIANT (TREE_TYPE (type)); > if (char_type_p (typ1) > - /*&& init */ > && TREE_CODE (stripped_init) == STRING_CST) > { > tree char_type = TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (init))); >
--- gcc/cp/typeck2.c +++ gcc/cp/typeck2.c @@ -1099,7 +1099,6 @@ digest_init_r (tree type, tree init, int nested, int flags, tree typ1 = TYPE_MAIN_VARIANT (TREE_TYPE (type)); if (char_type_p (typ1) - /*&& init */ && TREE_CODE (stripped_init) == STRING_CST) { tree char_type = TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (init)));