8211212: ARM: -Werror=switch build failure

Reviewed-by: shade
This commit is contained in:
Aleksei Voitylov 2018-09-28 15:39:31 +03:00
parent 20f6faa030
commit 52780f275c
2 changed files with 2 additions and 1 deletions

View File

@ -870,8 +870,8 @@ void LIRGenerator::do_ArithmeticOp(ArithmeticOp* x) {
case doubleTag: do_ArithmeticOp_FPU(x); return; case doubleTag: do_ArithmeticOp_FPU(x); return;
case longTag: do_ArithmeticOp_Long(x); return; case longTag: do_ArithmeticOp_Long(x); return;
case intTag: do_ArithmeticOp_Int(x); return; case intTag: do_ArithmeticOp_Int(x); return;
default: ShouldNotReachHere(); return;
} }
ShouldNotReachHere();
} }

View File

@ -2996,6 +2996,7 @@ void TemplateTable::resolve_cache_and_index(int byte_no,
switch (code) { switch (code) {
case Bytecodes::_nofast_getfield: code = Bytecodes::_getfield; break; case Bytecodes::_nofast_getfield: code = Bytecodes::_getfield; break;
case Bytecodes::_nofast_putfield: code = Bytecodes::_putfield; 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"); assert(byte_no == f1_byte || byte_no == f2_byte, "byte_no out of range");