Mercurial > hg > graal-jvmci-8
diff src/share/vm/opto/callnode.cpp @ 305:ab075d07f1ba
6736417: Fastdebug C2 crashes in StoreBNode::Ideal
Summary: The result of step_through_mergemem() and remove_dead_region() is not checked in some cases.
Reviewed-by: never
author | kvn |
---|---|
date | Wed, 27 Aug 2008 09:15:46 -0700 |
parents | 02a35ad4adf8 |
children | cecd8eb4e0ca |
line wrap: on
line diff
--- a/src/share/vm/opto/callnode.cpp Wed Aug 27 00:21:55 2008 -0700 +++ b/src/share/vm/opto/callnode.cpp Wed Aug 27 09:15:46 2008 -0700 @@ -829,9 +829,7 @@ //------------------------------Ideal------------------------------------------ // Skip over any collapsed Regions Node *SafePointNode::Ideal(PhaseGVN *phase, bool can_reshape) { - if (remove_dead_region(phase, can_reshape)) return this; - - return NULL; + return remove_dead_region(phase, can_reshape) ? this : NULL; } //------------------------------Identity---------------------------------------