src/hotspot/share/c1/c1_LIRGenerator.cpp
changeset 50207 24b5f2e635f6
parent 50153 9010b580d8a9
child 50589 e5d741569070
child 56625 380796df44a9
--- a/src/hotspot/share/c1/c1_LIRGenerator.cpp	Mon May 21 21:27:12 2018 -0700
+++ b/src/hotspot/share/c1/c1_LIRGenerator.cpp	Tue May 22 09:04:15 2018 +0200
@@ -2304,8 +2304,8 @@
   move_to_phi(x->state());
 
   int lo_key = x->lo_key();
-  int hi_key = x->hi_key();
   int len = x->length();
+  assert(lo_key <= (lo_key + (len - 1)), "integer overflow");
   LIR_Opr value = tag.result();
 
   if (compilation()->env()->comp_level() == CompLevel_full_profile && UseSwitchProfiling) {