提交 f0ab4695 编写于 作者: J Jonas Schievink

Remove unnecessary block

上级 a5c18516
......@@ -453,13 +453,11 @@ pub fn eval_place_to_op(
place: mir::Place<'tcx>,
layout: Option<TyAndLayout<'tcx>>,
) -> InterpResult<'tcx, OpTy<'tcx, M::PointerTag>> {
let base_op = {
// Do not use the layout passed in as argument if the base we are looking at
// here is not the entire place.
let layout = if place.projection.is_empty() { layout } else { None };
// Do not use the layout passed in as argument if the base we are looking at
// here is not the entire place.
let layout = if place.projection.is_empty() { layout } else { None };
self.access_local(self.frame(), place.local, layout)?
};
let base_op = self.access_local(self.frame(), place.local, layout)?;
let op = place
.projection
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册