Skip to content

Commit fb66b9e

Browse files
Don't emit StorageDead for the resume argument
1 parent 895aab2 commit fb66b9e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc_mir/transform/generator.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,10 +1128,6 @@ fn create_cases<'tcx>(
11281128
Rvalue::Use(Operand::Move(resume_arg.into())),
11291129
)),
11301130
});
1131-
statements.push(Statement {
1132-
source_info,
1133-
kind: StatementKind::StorageDead(resume_arg),
1134-
});
11351131
}
11361132

11371133
// Then jump to the real target

0 commit comments

Comments
 (0)