OpenJDK / jdk / jdk12
changeset 51948:5ba442f14818
8211212: ARM: -Werror=switch build failure
Reviewed-by: shade
author | avoitylov |
---|---|
date | Fri, 28 Sep 2018 15:39:31 +0300 |
parents | 2d980757fd07 |
children | 2a1e47af3c6b |
files | src/hotspot/cpu/arm/c1_LIRGenerator_arm.cpp src/hotspot/cpu/arm/templateTable_arm.cpp |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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");