[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:
parent
26bf4e3134
commit
49fb296851
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue