diff --git a/src/interpreter.rs b/src/interpreter.rs index bd51e2d2dbf..c8e6d0bbe1f 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -186,10 +186,10 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn run(&mut self) -> EvalResult<()> { 'outer: while !self.stack.is_empty() { let mut current_block = self.frame().next_block; + let current_mir = self.mir(); loop { trace!("// {:?}", current_block); - let current_mir = self.mir().clone(); // Cloning a reference. let block_data = current_mir.basic_block_data(current_block); for stmt in &block_data.statements {