7090976: Eclipse/CDT causes a JVM crash while indexing C++ code

Too optimistic inlining decision confuses local value numbering.

Reviewed-by: never
This commit is contained in:
Roland Westrelin 2012-02-01 10:36:58 +01:00
parent 2fd128fe15
commit a59952f4c9
4 changed files with 110 additions and 9 deletions

View file

@ -125,6 +125,7 @@ Value ValueMap::find_insert(Value x) {
// 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;