Commit d1188d91 by Andrew Haley Committed by Andrew Haley

typeck.c (convert_arguments): Check that we have an fndecl.

2001-03-06  Andrew Haley  <aph@redhat.com>

	* typeck.c (convert_arguments): Check that we have an fndecl.

From-SVN: r40265
parent 4eaf1d5b
2001-03-06 Andrew Haley <aph@redhat.com>
* typeck.c (convert_arguments): Check that we have an fndecl.
2001-03-05 Andrew Haley <aph@redhat.com> 2001-03-05 Andrew Haley <aph@redhat.com>
* typeck.c (convert_arguments): Don't do ellipsis conversion for * typeck.c (convert_arguments): Don't do ellipsis conversion for
......
...@@ -3207,7 +3207,7 @@ convert_arguments (typelist, values, fndecl, flags) ...@@ -3207,7 +3207,7 @@ convert_arguments (typelist, values, fndecl, flags)
if (TREE_CODE (TREE_TYPE (val)) == REFERENCE_TYPE) if (TREE_CODE (TREE_TYPE (val)) == REFERENCE_TYPE)
val = convert_from_reference (val); val = convert_from_reference (val);
if (DECL_BUILT_IN (fndecl) if (fndecl && DECL_BUILT_IN (fndecl)
&& DECL_FUNCTION_CODE (fndecl) == BUILT_IN_CONSTANT_P) && DECL_FUNCTION_CODE (fndecl) == BUILT_IN_CONSTANT_P)
/* Don't do ellipsis conversion for __built_in_constant_p /* Don't do ellipsis conversion for __built_in_constant_p
as this will result in spurious warnings for non-POD as this will result in spurious warnings for non-POD
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment