gcc/ * gimple.h (gimple_call_arg_flags): Require a const_gimple_call rather than a const_gimple.
* gimple.c (gimple_call_fnspec): Likewise. (gimple_call_arg_flags): Likewise. --- gcc/gimple.c | 4 ++-- gcc/gimple.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/gimple.c b/gcc/gimple.c index 69c639a..582f0f0 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -1351,7 +1351,7 @@ gimple_call_flags (const_gimple stmt) /* Return the "fn spec" string for call STMT. */ static tree -gimple_call_fnspec (const_gimple stmt) +gimple_call_fnspec (const_gimple_call stmt) { tree type, attr; @@ -1369,7 +1369,7 @@ gimple_call_fnspec (const_gimple stmt) /* Detects argument flags for argument number ARG on call STMT. */ int -gimple_call_arg_flags (const_gimple stmt, unsigned arg) +gimple_call_arg_flags (const_gimple_call stmt, unsigned arg) { tree attr = gimple_call_fnspec (stmt); diff --git a/gcc/gimple.h b/gcc/gimple.h index a7829a4..dd6dd38 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -1683,7 +1683,7 @@ bool empty_body_p (gimple_seq); gimple_seq gimple_seq_copy (gimple_seq); bool gimple_call_same_target_p (const_gimple, const_gimple); int gimple_call_flags (const_gimple); -int gimple_call_arg_flags (const_gimple, unsigned); +int gimple_call_arg_flags (const_gimple_call, unsigned); int gimple_call_return_flags (const_gimple_call); bool gimple_assign_copy_p (gimple); bool gimple_assign_ssa_name_copy_p (gimple); -- 1.8.5.3