diff options
author | Jason Merrill <jason@redhat.com> | 2010-04-01 14:48:34 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-04-01 14:48:34 -0400 |
commit | 9542943db3fca29644fa2450523d8277e0a74f5f (patch) | |
tree | 567c58a316e4c0c4bf51005f2a00e870408d19f0 /gcc/cp/semantics.c | |
parent | ecd01deef091f75f8eaf760320c41d1defb04c45 (diff) | |
download | gcc-9542943db3fca29644fa2450523d8277e0a74f5f.zip gcc-9542943db3fca29644fa2450523d8277e0a74f5f.tar.gz gcc-9542943db3fca29644fa2450523d8277e0a74f5f.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 1678e50..1c47ded 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -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)) |