diff src/share/vm/c1/c1_ValueMap.cpp @ 4871:f067b4e0e04b

7090976: Eclipse/CDT causes a JVM crash while indexing C++ code Summary: too optimistic inlining decision confuses local value numbering. Reviewed-by: never
author roland
date Wed, 01 Feb 2012 10:36:58 +0100
parents f95d63e2154a
children 0bfcb7a3e12d
line wrap: on
line diff
--- a/src/share/vm/c1/c1_ValueMap.cpp	Tue Jan 31 09:53:46 2012 -0800
+++ b/src/share/vm/c1/c1_ValueMap.cpp	Wed Feb 01 10:36:58 2012 +0100
@@ -125,6 +125,7 @@
             // otherwise it is possible that they are not evaluated
             f->pin(Instruction::PinGlobalValueNumbering);
           }
+          assert(x->type()->tag() == f->type()->tag(), "should have same type");
 
           return f;