Don't emit StorageDead for the resume argument

This commit is contained in:
Jonas Schievink 2020-02-04 14:25:55 +01:00
parent 895aab2263
commit fb66b9ee3b

View File

@ -1128,10 +1128,6 @@ fn create_cases<'tcx>(
Rvalue::Use(Operand::Move(resume_arg.into())),
)),
});
statements.push(Statement {
source_info,
kind: StatementKind::StorageDead(resume_arg),
});
}
// Then jump to the real target