handle EndRegion as no-op

This commit is contained in:
David Renshaw
2017-06-20 19:35:46 +09:00
parent fb3d93cf23
commit f14ebd1142
+2
View File
@@ -141,6 +141,8 @@ fn statement(&mut self, stmt: &mir::Statement<'tcx>) -> EvalResult<'tcx> {
self.deallocate_local(old_val)?;
}
EndRegion(..) => {}
// Defined to do nothing. These are added by optimization passes, to avoid changing the
// size of MIR constantly.
Nop => {}