Fix accidental case fall-throughs in MutableMethodImplementation

This commit is contained in:
Ben Gruver 2013-10-11 21:32:33 -07:00
parent 1697b1d97d
commit bc6fcd5ae3

View File

@ -589,8 +589,10 @@ public class MutableMethodImplementation implements MethodImplementation {
case SparseSwitchPayload: case SparseSwitchPayload:
setInstruction(location, setInstruction(location,
newBuilderSparseSwitchPayload(location, codeAddressToIndex, (SparseSwitchPayload)instruction)); newBuilderSparseSwitchPayload(location, codeAddressToIndex, (SparseSwitchPayload)instruction));
return;
case ArrayPayload: case ArrayPayload:
setInstruction(location, newBuilderArrayPayload((ArrayPayload)instruction)); setInstruction(location, newBuilderArrayPayload((ArrayPayload)instruction));
return;
default: default:
throw new ExceptionWithContext("Instruction format %s not supported", instruction.getOpcode().format); throw new ExceptionWithContext("Instruction format %s not supported", instruction.getOpcode().format);
} }