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
This commit is contained in:
Shujing Zhao 2009-12-17 08:25:06 +00:00 committed by Shujing Zhao
parent dd865ef6e8
commit 7ad86035e8
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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);

View File

@ -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);