Skip to content

Commit

Permalink
change the way a nullptr is made (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l authored May 4, 2024
1 parent d43b64e commit 8614ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions melior/src/dialect/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ pub fn poison<'c>(result_type: Type<'c>, location: Location<'c>) -> Operation<'c
.expect("valid operation")
}

/// Creates a `llvm.mlir.null` operation. A null pointer.
/// Creates a null pointer.
pub fn nullptr<'c>(ptr_type: Type<'c>, location: Location<'c>) -> Operation<'c> {
OperationBuilder::new("llvm.mlir.null", location)
OperationBuilder::new("llvm.mlir.zero", location)
.add_results(&[ptr_type])
.build()
.expect("valid operation")
Expand Down

0 comments on commit 8614ccd

Please sign in to comment.