(expand_call): Don't call convert_to_mode if we obtained

VALUE in the proper mode; VALUE might be a CONST_INT.

From-SVN: r2604
This commit is contained in:
Richard Stallman 1992-10-25 22:50:23 +00:00
parent 87e38d8422
commit 1709c75483
1 changed files with 1 additions and 1 deletions

View File

@ -1425,7 +1425,7 @@ expand_call (exp, target, ignore)
mode = (GET_CODE (args[i].reg) == EXPR_LIST
? GET_MODE (XEXP (args[i].reg, 0)) : GET_MODE (args[i].reg));
if (GET_MODE (args[i].value) != mode)
if (TYPE_MODE (TREE_TYPE (args[i].tree_value)) != mode)
args[i].value = convert_to_mode (mode, args[i].value,
args[i].unsignedp);
}