From 89bc2deaa6f0b292cc09391f5f54c9aac87c0690 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Wed, 26 Jun 2024 18:35:00 +0900 Subject: [PATCH] Disable prev in block function temporarily --- melior/src/ir/operation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/melior/src/ir/operation.rs b/melior/src/ir/operation.rs index 8ad1f9ef81..6fa3d65a13 100644 --- a/melior/src/ir/operation.rs +++ b/melior/src/ir/operation.rs @@ -228,9 +228,9 @@ impl<'c> Operation<'c> { unsafe { OperationRefMut::from_option_raw(mlirOperationGetNextInBlock(self.raw)) } } - /// Returns a reference to the next operation in the same block. + /// Returns a reference to the previous operation in the same block. pub fn previous_in_block(&self) -> Option> { - unsafe { OperationRef::from_option_raw(mlirOperationGetNextInBlock(self.raw)) } + todo!("mlirOperationGetPrevInBlock is not exposed in the C API") } /// Returns a reference to a parent operation.