tree-vrp.c (infer_nonnull_range): Use is_gimple_call, ignore internal calls.

* tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
	ignore internal calls.

From-SVN: r203427
This commit is contained in:
Jakub Jelinek 2013-10-11 14:45:41 +02:00 committed by Jakub Jelinek
parent e6ad28c368
commit d89124ed12
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-10-11 Jakub Jelinek <jakub@redhat.com>
* tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
ignore internal calls.
2013-10-11 Richard Biener <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): Allow to dump

View File

@ -4484,7 +4484,7 @@ infer_nonnull_range (gimple stmt, tree op)
if (num_loads + num_stores > 0)
return true;
if (gimple_code (stmt) == GIMPLE_CALL)
if (is_gimple_call (stmt) && !gimple_call_internal_p (stmt))
{
tree fntype = gimple_call_fntype (stmt);
tree attrs = TYPE_ATTRIBUTES (fntype);