From fcf293b077f90ed5d1aa568a690e80936fb087d8 Mon Sep 17 00:00:00 2001 From: trippels Date: Thu, 9 Oct 2014 17:52:00 +0000 Subject: 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 --- gcc/ipa-polymorphic-call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ipa-polymorphic-call.c') 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) -- cgit v1.2.1