1
Fork 0

handle EndRegion as no-op

This commit is contained in:
David Renshaw 2017-06-20 19:35:46 +09:00
parent fb3d93cf23
commit f14ebd1142

View file

@ -141,6 +141,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
self.deallocate_local(old_val)?; self.deallocate_local(old_val)?;
} }
EndRegion(..) => {}
// Defined to do nothing. These are added by optimization passes, to avoid changing the // Defined to do nothing. These are added by optimization passes, to avoid changing the
// size of MIR constantly. // size of MIR constantly.
Nop => {} Nop => {}