summaryrefslogtreecommitdiff
path: root/gcc/ipa-polymorphic-call.c
diff options
context:
space:
mode:
authortrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-09 17:52:00 +0000
committertrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-09 17:52:00 +0000
commitfcf293b077f90ed5d1aa568a690e80936fb087d8 (patch)
treeb60169a03d162e85ccd8f195f290653cb436daaa /gcc/ipa-polymorphic-call.c
parent1a29382ca1bd4f98dfea5e0030bde214e180303e (diff)
downloadgcc-fcf293b077f90ed5d1aa568a690e80936fb087d8.tar.gz
Fix r216010 fallout
This fixes fallout from r216010, which causes Firefox build failures. Just move the gcc_assert below the new if statement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216041 138bc75d-0d04-0410-961f-82ee72b054a4
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 51c6709a865..7d58601ae36 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)