8285342: Zero build failure with clang due to values not handled in switch

Reviewed-by: shade, aph
This commit is contained in:
Jie Fu 2022-04-21 23:46:59 +00:00
parent 58155a723e
commit d84b9c5489
2 changed files with 4 additions and 0 deletions

View File

@ -619,6 +619,8 @@ int ZeroInterpreter::getter_entry(Method* method, intptr_t UNUSED, TRAPS) {
stack->alloc(wordSize);
topOfStack = stack->sp();
break;
default:
;
}
// Read the field to stack(0)

View File

@ -2994,6 +2994,8 @@ run:
SET_STACK_OBJECT(ts->earlyret_oop(), 0);
MORE_STACK(1);
break;
default:
ShouldNotReachHere();
}
ts->clr_earlyret_value();