OSDN Git Service

* semantics.c (maybe_add_lambda_conv_op): Use null_pointer_node
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Apr 2010 18:48:34 +0000 (18:48 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:16:10 +0000 (14:16 +0900)
instead of void_zero_node.

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

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 0a1bce8..5bc6630 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-01  Jason Merrill  <jason@redhat.com>
+
+       * semantics.c (maybe_add_lambda_conv_op): Use null_pointer_node
+       instead of void_zero_node.
+
 2010-03-31  Dodji Seketeli  <dodji@redhat.com>
 
        PR c++/43558
index b0e2150..f89356c 100644 (file)
@@ -5953,7 +5953,8 @@ maybe_add_lambda_conv_op (tree type)
   body = begin_function_body ();
   compound_stmt = begin_compound_stmt (0);
 
-  arg = build1 (NOP_EXPR, TREE_TYPE (DECL_ARGUMENTS (callop)), void_zero_node);
+  arg = build1 (NOP_EXPR, TREE_TYPE (DECL_ARGUMENTS (callop)),
+               null_pointer_node);
   argvec = make_tree_vector ();
   VEC_quick_push (tree, argvec, arg);
   for (arg = DECL_ARGUMENTS (statfn); arg; arg = TREE_CHAIN (arg))