aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-polymorphic-call.c
diff options
context:
space:
mode:
authorMarkus Trippelsdorf <markus@trippelsdorf.de>2014-10-09 17:52:00 +0000
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>2014-10-09 17:52:00 +0000
commit94c4084cf009939db425be4f6552b7f29f8587b3 (patch)
treeb60169a03d162e85ccd8f195f290653cb436daaa /gcc/ipa-polymorphic-call.c
parentd0ff1cb4d9b1972e0aa9535d77413e12c4e84fa2 (diff)
downloadgcc-94c4084cf009939db425be4f6552b7f29f8587b3.zip
gcc-94c4084cf009939db425be4f6552b7f29f8587b3.tar.gz
gcc-94c4084cf009939db425be4f6552b7f29f8587b3.tar.bz2
Fix r216010 fallout
This fixes fallout from r216010, which causes Firefox build failures. Just move the gcc_assert below the new if statement. From-SVN: r216041
Diffstat (limited to 'gcc/ipa-polymorphic-call.c')
-rw-r--r--gcc/ipa-polymorphic-call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-polymorphic-call.c b/gcc/ipa-polymorphic-call.c
index 51c6709..7d58601 100644
--- a/gcc/ipa-polymorphic-call.c
+++ b/gcc/ipa-polymorphic-call.c
@@ -1424,9 +1424,9 @@ check_stmt_for_type_change (ao_ref *ao ATTRIBUTE_UNUSED, tree vdef, void *data)
}
type = extr_type_from_vtbl_ptr_store (stmt, tci, &offset);
- gcc_assert (!type || TYPE_MAIN_VARIANT (type) == type);
if (type == error_mark_node)
return false;
+ gcc_assert (!type || TYPE_MAIN_VARIANT (type) == type);
if (!type)
{
if (dump_file)