diff options
Diffstat (limited to 'gcc/config/frv/frv.c')
-rw-r--r-- | gcc/config/frv/frv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index 942f3c688ed..b8701a527d7 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -9216,8 +9216,9 @@ frv_expand_builtin (tree exp, enum machine_mode mode ATTRIBUTE_UNUSED, int ignore ATTRIBUTE_UNUSED) { - tree arglist = TREE_OPERAND (exp, 1); - tree fndecl = TREE_OPERAND (TREE_OPERAND (exp, 0), 0); + /* FIXME: Pass the CALL_EXPR directly instead of consing up an arglist. */ + tree arglist = CALL_EXPR_ARGS (exp); + tree fndecl = TREE_OPERAND (CALL_EXPR_FN (exp), 0); unsigned fcode = (unsigned)DECL_FUNCTION_CODE (fndecl); unsigned i; struct builtin_description *d; |