using DecRef again

This commit is contained in:
J.Teeuwissen 2023-05-10 12:35:22 +02:00 committed by Folkert
parent 9e74a2cc8c
commit e9c77a1d30
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -397,11 +397,11 @@ fn insert_reset_reuse_operations_stmt<'a, 'i>(
}
Stmt::Refcounting(rc, continuation) => {
let reuse_pair = match rc {
ModifyRc::Inc(_, _) | ModifyRc::DecRef(_) => {
ModifyRc::Inc(_, _) => {
// We don't need to do anything for an inc.
None
}
ModifyRc::Dec(symbol) => {
ModifyRc::Dec(symbol) | ModifyRc::DecRef(symbol) => {
// Get the layout of the symbol from where it is defined.
let layout_option = environment.get_symbol_layout(*symbol);