mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 01:50:34 +08:00
call.c (build_object_call): Move declaration of variable `fn' into the scope where it is used.
* call.c (build_object_call): Move declaration of variable `fn' into the scope where it is used. Don't access variable `fn' when it is uninitialized, instead use `fns'. From-SVN: r22850
This commit is contained in:
parent
08d292de20
commit
d64db93fbc
@ -2394,13 +2394,12 @@ build_object_call (obj, args)
|
||||
{
|
||||
tree fns = TREE_VALUE (convs);
|
||||
tree totype = TREE_TYPE (TREE_TYPE (OVL_CURRENT (fns)));
|
||||
tree fn;
|
||||
|
||||
if (TREE_CODE (totype) == POINTER_TYPE
|
||||
&& TREE_CODE (TREE_TYPE (totype)) == FUNCTION_TYPE)
|
||||
for (; fns; fns = OVL_NEXT (fn))
|
||||
for (; fns; fns = OVL_NEXT (fns))
|
||||
{
|
||||
fn = OVL_CURRENT (fn);
|
||||
tree fn = OVL_CURRENT (fns);
|
||||
if (TREE_CODE (fn) == TEMPLATE_DECL)
|
||||
{
|
||||
templates = scratch_tree_cons (NULL_TREE, fn, templates);
|
||||
|
Loading…
x
Reference in New Issue
Block a user