Fix ipa-icf ICE on variadic types

* ipa-icf.c (sem_function::hash_stmt): Fix conditional on
	variably_modified_type_p.
This commit is contained in:
Jan Hubicka 2020-11-17 22:55:42 +01:00
parent d3ae802402
commit 0c1db9fa47
1 changed files with 2 additions and 2 deletions

View File

@ -1459,10 +1459,10 @@ sem_function::hash_stmt (gimple *stmt, inchash::hash &hstate)
ao_ref_init (&ref, gimple_op (stmt, i));
tree t = ao_ref_alias_ptr_type (&ref);
if (variably_modified_type_p (t, NULL_TREE))
if (!variably_modified_type_p (t, NULL_TREE))
memory_access_types.safe_push (t);
t = ao_ref_base_alias_ptr_type (&ref);
if (variably_modified_type_p (t, NULL_TREE))
if (!variably_modified_type_p (t, NULL_TREE))
memory_access_types.safe_push (t);
}
}