提交 c32cf256 编写于 作者: B bjorn3

Rename read_local_of_frame to access_local

上级 f46e3ba3
......@@ -572,7 +572,7 @@ pub fn operand_projection(
}
/// This is used by [priroda](https://github.com/oli-obk/priroda) to get an OpTy from a local
pub fn read_local_of_frame(
pub fn access_local(
&self,
frame: &super::Frame<'mir, 'tcx, M::PointerTag>,
local: mir::Local,
......@@ -595,7 +595,7 @@ fn eval_place_to_op(
use rustc::mir::Place::*;
let op = match *mir_place {
Local(mir::RETURN_PLACE) => return err!(ReadFromReturnPointer),
Local(local) => self.read_local_of_frame(self.frame(), local, layout)?,
Local(local) => self.access_local(self.frame(), local, layout)?,
Projection(ref proj) => {
let op = self.eval_place_to_op(&proj.base, None)?;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册