Revert "add ir unknowninc instruction"

This reverts commit ebd62485df.
This commit is contained in:
Folkert 2021-05-16 21:52:30 +02:00
parent 7520dfee06
commit bb3fe92251
7 changed files with 14 additions and 56 deletions

View file

@ -575,17 +575,6 @@ fn expand_and_cancel<'a>(env: &mut Env<'a, '_>, stmt: &'a Stmt<'a>) -> &'a Stmt<
expand_and_cancel(env, cont)
}
Refcounting(
ModifyRc::IncUnknown {
to_increment: _,
amount: _,
},
cont,
) => {
// TODO
expand_and_cancel(env, cont)
}
Refcounting(ModifyRc::Inc(symbol, inc_amount), cont) => {
let count = env.deferred.inc_dec_map.entry(*symbol).or_insert(0);
*count += *inc_amount as i64;