[llvm] [LangRef] Fix a typo (PR #111545)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 08:25:55 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-ir

Author: wzy (Freed-Wu)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/111545.diff


1 Files Affected:

- (modified) llvm/docs/LangRef.rst (+1-1) 


``````````diff
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 5527e4a8818a55..97891ab9f2b2be 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -4746,7 +4746,7 @@ Here are some examples:
 
     entry:
       %poison = sub nuw i32 0, 1           ; Results in a poison value.
-      %poison2 = sub i32 poison, 1         ; Also results in a poison value.
+      %poison2 = sub i32 %poison, 1         ; Also results in a poison value.
       %still_poison = and i32 %poison, 0   ; 0, but also poison.
       %poison_yet_again = getelementptr i32, ptr @h, i32 %still_poison
       store i32 0, ptr %poison_yet_again   ; Undefined behavior due to

``````````

</details>


https://github.com/llvm/llvm-project/pull/111545


More information about the llvm-commits mailing list