提交 f14ebd11 编写于 作者: D David Renshaw

handle EndRegion as no-op

上级 fb3d93cf
...@@ -141,6 +141,8 @@ fn statement(&mut self, stmt: &mir::Statement<'tcx>) -> EvalResult<'tcx> { ...@@ -141,6 +141,8 @@ fn statement(&mut self, stmt: &mir::Statement<'tcx>) -> EvalResult<'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 => {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册