[v4,3/4] i386: Avoid always-true condition
Checks
| Context |
Check |
Description |
| linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap |
fail
|
Patch failed to apply
|
Commit Message
From: Richard Sandiford <rdsandiford@googlemail.com>
ix86_function_arg is always passed a cumulative argument structure,
so the ?: test in the patch was redundant.
gcc/
* config/i386/i386.cc (ix86_function_arg): Remove always-true
condition.
---
gcc/config/i386/i386.cc | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
@@ -3601,9 +3601,7 @@ ix86_function_arg (cumulative_args_t cum_v, const function_arg_info &arg)
if (TARGET_64BIT)
{
- enum calling_abi call_abi = cum ? cum->call_abi : ix86_abi;
-
- if (call_abi == MS_ABI)
+ if (cum->call_abi == MS_ABI)
reg = function_arg_ms_64 (cum, mode, arg.mode, arg.named,
arg.type, bytes);
else