8211212: ARM: -Werror=switch build failure
authoravoitylov
Fri, 28 Sep 2018 15:39:31 +0300
changeset 51948 5ba442f14818
parent 51947 2d980757fd07
child 51949 2a1e47af3c6b
8211212: ARM: -Werror=switch build failure Reviewed-by: shade
src/hotspot/cpu/arm/c1_LIRGenerator_arm.cpp
src/hotspot/cpu/arm/templateTable_arm.cpp
--- a/src/hotspot/cpu/arm/c1_LIRGenerator_arm.cpp	Fri Sep 28 12:47:09 2018 +0100
+++ b/src/hotspot/cpu/arm/c1_LIRGenerator_arm.cpp	Fri Sep 28 15:39:31 2018 +0300
@@ -870,8 +870,8 @@
     case doubleTag:  do_ArithmeticOp_FPU(x);  return;
     case longTag:    do_ArithmeticOp_Long(x); return;
     case intTag:     do_ArithmeticOp_Int(x);  return;
+    default:         ShouldNotReachHere();    return;
   }
-  ShouldNotReachHere();
 }
 
 
--- a/src/hotspot/cpu/arm/templateTable_arm.cpp	Fri Sep 28 12:47:09 2018 +0100
+++ b/src/hotspot/cpu/arm/templateTable_arm.cpp	Fri Sep 28 15:39:31 2018 +0300
@@ -2996,6 +2996,7 @@
   switch (code) {
   case Bytecodes::_nofast_getfield: code = Bytecodes::_getfield; break;
   case Bytecodes::_nofast_putfield: code = Bytecodes::_putfield; break;
+  default: break;
   }
 
   assert(byte_no == f1_byte || byte_no == f2_byte, "byte_no out of range");