This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch]: Remove dead return statement in cp/calls.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: [patch]: Remove dead return statement in cp/calls.c
- From: Diego Novillo <dnovillo at redhat dot com>
- Date: Fri, 25 May 2001 11:09:41 -0400
- Organization: Red Hat Canada
There's a dead return statement in cp/call.c:add_builtin_candidate.
I only spotted it because of a warning issued by the tree
flowgraph builder.
I'm not really sure if this the right patch. But that return
statement is definitely unreachable.
Diego.
2001-05-25 Diego Novillo <dnovillo@redhat.com>
* call.c (add_builtin_candidate): Remove dead return statement.
Index: call.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/call.c,v
retrieving revision 1.270
diff -d -c -p -r1.270 call.c
*** call.c 2001/05/22 00:31:35 1.270
--- call.c 2001/05/25 15:07:14
*************** add_builtin_candidate (candidates, code,
*** 1945,1953 ****
types are TYPE2. */
break;
- /* These arguments do not make for a legal overloaded operator. */
- return candidates;
-
default:
my_friendly_abort (367);
}
--- 1945,1950 ----