[PR ipa/71981] Make get_dynamic_type grok MEM_REF
authorMartin Jambor <mjambor@suse.cz>
Tue, 9 Aug 2016 16:05:30 +0000 (18:05 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 9 Aug 2016 16:05:30 +0000 (18:05 +0200)
commit04d6d3b6d77d247616543dedad7ee239368591a5
treefb415bd7783c05576d00d25478e6a73a42af2380
parent045f240b97c75ad7e8f27a6464ae5b6857128fbe
[PR ipa/71981] Make get_dynamic_type grok MEM_REF

2016-08-09  Martin Jambor  <mjambor@suse.cz>

        PR ipa/71981
        * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
        if instance is a MEM_REF.

testsuite/
        PR ipa/71981
        * gcc.dg/ipa/pr71981.c: New test.

From-SVN: r239294
gcc/ChangeLog
gcc/ipa-polymorphic-call.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr71981.c [new file with mode: 0644]