Skip to content

Commit

Permalink
Drop two wrong, but unreachable, switch branches
Browse files Browse the repository at this point in the history
If we do need these in the future, it's better to find out with a panic
because they aren't implemented than a nasty memory bug because they
gave the wrong numbers.
  • Loading branch information
jnthn committed Jun 26, 2020
1 parent cc8634a commit 9eb15f0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/callstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,8 @@ size_t record_size(MVMCallStackRecord *record) {
return sizeof(MVMCallStackPromotedFrame);
case MVM_CALLSTACK_RECORD_CONTINUATION_TAG:
return sizeof(MVMCallStackContinuationTag);
case MVM_CALLSTACK_RECORD_FLATTENING:
return sizeof(MVMCallStackFlattening);
case MVM_CALLSTACK_RECORD_DISPATCH_RECORD:
return sizeof(MVMCallStackDispatchRecord);
case MVM_CALLSTACK_RECORD_DISPATCH_RUN:
return sizeof(MVMCallStackDispatchRun);
default:
MVM_panic(1, "Unknown callstack record type in record_size");
}
Expand Down

0 comments on commit 9eb15f0

Please sign in to comment.