From 7ad86035e8e75ebb5b93278ec0d46a1120334a1a Mon Sep 17 00:00:00 2001 From: Shujing Zhao Date: Thu, 17 Dec 2009 08:25:06 +0000 Subject: [PATCH] call.c (build_over_call, [...]): Update cp_build_indirect_ref calls. 2009-12-17 Shujing Zhao * call.c (build_over_call, build_java_interface_fn_ref): Update cp_build_indirect_ref calls. * typeck2.c (build_m_component_ref): Likewise. From-SVN: r155303 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/call.c | 4 ++-- gcc/cp/typeck2.c | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4a756cf33d3..43e71065fc2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2009-12-17 Shujing Zhao + + * call.c (build_over_call, build_java_interface_fn_ref): Update + cp_build_indirect_ref calls. + * typeck2.c (build_m_component_ref): Likewise. + 2009-12-17 Shujing Zhao * typeck.c (build_indirect_ref): Update the argument. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index d375302e722..0ed338301c5 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -5826,7 +5826,7 @@ build_over_call (struct z_candidate *cand, int flags, tsubst_flags_t complain) t = convert (TREE_TYPE (arg0), t); if (test) t = build3 (COND_EXPR, TREE_TYPE (t), test, arg0, t); - val = cp_build_indirect_ref (t, 0, complain); + val = cp_build_indirect_ref (t, RO_NULL, complain); TREE_NO_WARNING (val) = 1; } @@ -5934,7 +5934,7 @@ build_java_interface_fn_ref (tree fn, tree instance) /* Look up the pointer to the runtime java.lang.Class object for `instance'. This is the first entry in the vtable. */ - klass_ref = build_vtbl_ref (cp_build_indirect_ref (instance, 0, + klass_ref = build_vtbl_ref (cp_build_indirect_ref (instance, RO_NULL, tf_warning_or_error), integer_zero_node); diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index a4bd3811ead..66ff3c16264 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -1526,7 +1526,7 @@ build_m_component_ref (tree datum, tree component) datum = build2 (POINTER_PLUS_EXPR, ptype, fold_convert (ptype, datum), build_nop (sizetype, component)); - return cp_build_indirect_ref (datum, 0, tf_warning_or_error); + return cp_build_indirect_ref (datum, RO_NULL, tf_warning_or_error); } else return build2 (OFFSET_REF, type, datum, component);