Merge pull request #199 from dwrensha/end-region

handle EndRegion as no-op
This commit is contained in:
Oliver Schneider 2017-06-20 12:59:13 +02:00 committed by GitHub
commit 2302f2b81e

View file

@ -141,6 +141,8 @@ impl<'a, 'tcx> EvalContext<'a, '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 => {}