diff options
author | Shujing Zhao <pearly.zhao@oracle.com> | 2009-12-17 08:25:06 +0000 |
---|---|---|
committer | Shujing Zhao <pzhao@gcc.gnu.org> | 2009-12-17 08:25:06 +0000 |
commit | 7ad86035e8e75ebb5b93278ec0d46a1120334a1a (patch) | |
tree | c2aefac0c085ce14731585e7e8000323a2d296c1 | |
parent | dd865ef6e85afae532e83f05cf3126a23cb81ba5 (diff) | |
download | gcc-7ad86035e8e75ebb5b93278ec0d46a1120334a1a.zip gcc-7ad86035e8e75ebb5b93278ec0d46a1120334a1a.tar.gz gcc-7ad86035e8e75ebb5b93278ec0d46a1120334a1a.tar.bz2 |
call.c (build_over_call, [...]): Update cp_build_indirect_ref calls.
2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
* 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
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/call.c | 4 | ||||
-rw-r--r-- | gcc/cp/typeck2.c | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4a756cf..43e7106 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,11 @@ 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com> + * 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 <pearly.zhao@oracle.com> + * typeck.c (build_indirect_ref): Update the argument. (build_x_indirect_ref): Likewise. (cp_build_indirect_ref): Update the argument and emit the diagnostics diff --git a/gcc/cp/call.c b/gcc/cp/call.c index d375302..0ed3383 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 a4bd381..66ff3c1 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); |