[PR 88214] Assert that ptr is a pointer

2018-12-20  Martin Jambor  <mjambor@suse.cz>

	PR ipa/88214
	* tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Assert that
	ptr is a pointer.

From-SVN: r267298
This commit is contained in:
Martin Jambor 2018-12-20 15:14:22 +01:00 committed by Martin Jambor
parent 26bf4e3134
commit 49fb296851
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2018-12-20 Martin Jambor <mjambor@suse.cz>
PR ipa/88214
* tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Assert that
ptr is a pointer.
2018-12-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/84362

View File

@ -710,6 +710,7 @@ ao_ref_init_from_ptr_and_size (ao_ref *ref, tree ptr, tree size)
}
else
{
gcc_assert (POINTER_TYPE_P (TREE_TYPE (ptr)));
ref->base = build2 (MEM_REF, char_type_node,
ptr, null_pointer_node);
ref->offset = 0;