https://gcc.gnu.org/g:7a5bee01193e5b06ea9c4154ec168351c7b93bb1

commit r17-2208-g7a5bee01193e5b06ea9c4154ec168351c7b93bb1
Author: Richard Sandiford <[email protected]>
Date:   Thu May 14 23:06:39 2026 +0100

    i386: Avoid always-true condition
    
    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.

Diff:
---
 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 c22d059e8ca5..d62e75352688 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

Reply via email to