semantics.c (maybe_add_lambda_conv_op): Use null_pointer_node instead of void_zero_node.

* semantics.c (maybe_add_lambda_conv_op): Use null_pointer_node
	instead of void_zero_node.

From-SVN: r157926
This commit is contained in:
Jason Merrill 2010-04-01 14:48:34 -04:00 committed by Jason Merrill
parent ecd01deef0
commit 9542943db3
2 changed files with 7 additions and 1 deletions

View 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

View File

@ -5955,7 +5955,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))