diff --git a/melior/src/ir/block.rs b/melior/src/ir/block.rs index a902960f70..54ffbe1d68 100644 --- a/melior/src/ir/block.rs +++ b/melior/src/ir/block.rs @@ -143,7 +143,7 @@ impl<'c> Block<'c> { } } -impl<'c, 'v> BlockApi<'c, 'v> for Block<'c> { +impl<'c, 'v> BlockApi<'c, 'v> for &'v Block<'c> { fn argument(&self, index: usize) -> Result, Error> { unsafe { if index < self.argument_count() {