Skip to content

Commit 08011cf

Browse files
authored
[Docs][NFC] Use opaque ptr in the example (#91502)
1 parent 5768383 commit 08011cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/docs/MIRLangRef.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ Here is an example of a YAML document that contains an LLVM module:
168168

169169
.. code-block:: llvm
170170
171-
define i32 @inc(i32* %x) {
171+
define i32 @inc(ptr %x) {
172172
entry:
173-
%0 = load i32, i32* %x
173+
%0 = load i32, ptr %x
174174
%1 = add i32 %0, 1
175-
store i32 %1, i32* %x
175+
store i32 %1, ptr %x
176176
ret i32 %1
177177
}
178178

0 commit comments

Comments
 (0)