Skip to content

Commit 2302f2b

Browse files
authored
Merge pull request #199 from dwrensha/end-region
handle EndRegion as no-op
2 parents fb3d93c + f14ebd1 commit 2302f2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/step.rs

+2
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
141141
self.deallocate_local(old_val)?;
142142
}
143143

144+
EndRegion(..) => {}
145+
144146
// Defined to do nothing. These are added by optimization passes, to avoid changing the
145147
// size of MIR constantly.
146148
Nop => {}

0 commit comments

Comments
 (0)