OSDN Git Service

2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
authorpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Dec 2009 08:25:06 +0000 (08:25 +0000)
committerpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Dec 2009 08:25:06 +0000 (08:25 +0000)
* call.c (build_over_call, build_java_interface_fn_ref): Update
cp_build_indirect_ref calls.
* typeck2.c (build_m_component_ref): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155303 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck2.c

index 4a756cf..43e7106 100644 (file)
@@ -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
index d375302..0ed3383 100644 (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);
 
index a4bd381..66ff3c1 100644 (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);