(expand_inline_function): Use convert_modes.
From-SVN: r5303
This commit is contained in:
parent
94a6c46f8c
commit
5be957a209
@ -1245,10 +1245,11 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add
|
|||||||
if (GET_MODE (loc) != TYPE_MODE (TREE_TYPE (arg)))
|
if (GET_MODE (loc) != TYPE_MODE (TREE_TYPE (arg)))
|
||||||
/* The mode if LOC and ARG can differ if LOC was a variable
|
/* The mode if LOC and ARG can differ if LOC was a variable
|
||||||
that had its mode promoted via PROMOTED_MODE. */
|
that had its mode promoted via PROMOTED_MODE. */
|
||||||
arg_vals[i] = convert_to_mode (GET_MODE (loc),
|
arg_vals[i] = convert_modes (GET_MODE (loc),
|
||||||
expand_expr (arg, NULL_RTX, mode,
|
TYPE_MODE (TREE_TYPE (arg)),
|
||||||
EXPAND_SUM),
|
expand_expr (arg, NULL_RTX, mode,
|
||||||
TREE_UNSIGNED (TREE_TYPE (formal)));
|
EXPAND_SUM),
|
||||||
|
TREE_UNSIGNED (TREE_TYPE (formal)));
|
||||||
else
|
else
|
||||||
arg_vals[i] = expand_expr (arg, NULL_RTX, mode, EXPAND_SUM);
|
arg_vals[i] = expand_expr (arg, NULL_RTX, mode, EXPAND_SUM);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user