Commit 0a7561b7 by Nathan Froyd Committed by Nathan Froyd

re PR middle-end/44204 (ICE in gimple_op_ptr, at gimple.h:167)

	PR middle-end/44204
	* builtins.c (fold_call_stmt): Pass &error_mark_node if the call
	statement has no arguments.

From-SVN: r159662
parent f271b536
2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
PR middle-end/44204
* builtins.c (fold_call_stmt): Pass &error_mark_node if the call
statement has no arguments.
2010-05-21 Kai Tietz <kai.tietz@onevision.com>
PR/44139
......
......@@ -13699,7 +13699,9 @@ fold_call_stmt (gimple stmt, bool ignore)
if (DECL_BUILT_IN_CLASS (fndecl) == BUILT_IN_MD)
{
return targetm.fold_builtin (fndecl, nargs,
gimple_call_arg_ptr (stmt, 0), ignore);
(nargs > 0
? gimple_call_arg_ptr (stmt, 0)
: &error_mark_node), ignore);
}
else
{
......
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