mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
add inc field to Inc instruction
This commit is contained in:
parent
5a2b2cbcac
commit
15cbadf652
6 changed files with 21 additions and 14 deletions
|
@ -168,7 +168,7 @@ impl<'a> ParamMap<'a> {
|
|||
stack.extend(branches.iter().map(|b| &b.1));
|
||||
stack.push(default_branch);
|
||||
}
|
||||
Inc(_, _) | Dec(_, _) => unreachable!("these have not been introduced yet"),
|
||||
Inc(_, _, _) | Dec(_, _) => unreachable!("these have not been introduced yet"),
|
||||
|
||||
Ret(_) | Rethrow | Jump(_, _) | RuntimeError(_) => {
|
||||
// these are terminal, do nothing
|
||||
|
@ -513,7 +513,7 @@ impl<'a> BorrowInfState<'a> {
|
|||
}
|
||||
self.collect_stmt(default_branch);
|
||||
}
|
||||
Inc(_, _) | Dec(_, _) => unreachable!("these have not been introduced yet"),
|
||||
Inc(_, _, _) | Dec(_, _) => unreachable!("these have not been introduced yet"),
|
||||
|
||||
Ret(_) | RuntimeError(_) | Rethrow => {
|
||||
// these are terminal, do nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue