diff options
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 9f0f4ac..8621e0d 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -11801,6 +11801,9 @@ fold_builtin_next_arg (tree exp, bool va_start_p) arg = CALL_EXPR_ARG (exp, 0); } + if (TREE_CODE (arg) == SSA_NAME) + arg = SSA_NAME_VAR (arg); + /* We destructively modify the call to be __builtin_va_start (ap, 0) or __builtin_next_arg (0) the first time we see it, after checking the arguments and if needed issuing a warning. */ |