From: Richard Sandiford <[email protected]>
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(-)
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index 4cbbb42ae39..5bcf7254ab2 100644
--- a/gcc/config/i386/i386.cc
+++ b/gcc/config/i386/i386.cc
@@ -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
--
2.54.0