summaryrefslogtreecommitdiff
path: root/gcc/java/lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r--gcc/java/lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index 51459c53dd7..b1912cc1128 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -989,7 +989,7 @@ java_get_callee_fndecl (tree call_expr)
if (TREE_CODE (call_expr) != CALL_EXPR)
return NULL;
- method = TREE_OPERAND (call_expr, 0);
+ method = CALL_EXPR_FN (call_expr);
STRIP_NOPS (method);
if (TREE_CODE (method) != ARRAY_REF)
return NULL;