call.c (build_over_call, [...]): Update cp_build_indirect_ref calls.
authorShujing Zhao <pearly.zhao@oracle.com>
Thu, 17 Dec 2009 08:25:06 +0000 (08:25 +0000)
committerShujing Zhao <pzhao@gcc.gnu.org>
Thu, 17 Dec 2009 08:25:06 +0000 (08:25 +0000)
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

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

index 4a756cf33d361379d44ed0fe7c37c4740bc237b3..43e71065fc20ae7f585a0cb6dbcb929986b641c8 100644 (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.
index d375302e722c582090ec29e84aff10116911b0e3..0ed338301c5f550e0f80ef44ae6fd0bbae22d258 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 a4bd3811ead0d53dbfdea8282e0392483183612f..66ff3c16264f4fa4d8507c3aef11dbd0bfbb1001 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);