Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Oct 18, 2023
1 parent 6601e25 commit f8fda64
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions melior/src/ir/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,7 @@ impl<'c> Operation<'c> {

/// Gets the next operation in the same block.
pub fn next_in_block(&self) -> Option<OperationRef<'c, '_>> {
unsafe {
let operation = mlirOperationGetNextInBlock(self.raw);

if operation.ptr.is_null() {
None
} else {
Some(OperationRef::from_raw(operation))
}
}
unsafe { OperationRef::from_option_raw(mlirOperationGetNextInBlock(self.raw)) }
}

/// Verifies an operation.
Expand Down

0 comments on commit f8fda64

Please sign in to comment.