Skip to content

Commit

Permalink
[Docs][NFC] Use opaque ptr in the example (#91502)
Browse files Browse the repository at this point in the history
  • Loading branch information
XChy authored May 8, 2024
1 parent 5768383 commit 08011cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/docs/MIRLangRef.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ Here is an example of a YAML document that contains an LLVM module:

.. code-block:: llvm
define i32 @inc(i32* %x) {
define i32 @inc(ptr %x) {
entry:
%0 = load i32, i32* %x
%0 = load i32, ptr %x
%1 = add i32 %0, 1
store i32 %1, i32* %x
store i32 %1, ptr %x
ret i32 %1
}
Expand Down

0 comments on commit 08011cf

Please sign in to comment.