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

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 08:24:56 PDT 2024


https://github.com/Freed-Wu created https://github.com/llvm/llvm-project/pull/111545

None

>From 106e2b9d3f8b284a3659cba7eafa1d081283bc3c Mon Sep 17 00:00:00 2001
From: wzy <32936898+Freed-Wu at users.noreply.github.com>
Date: Tue, 8 Oct 2024 23:24:23 +0800
Subject: [PATCH] Fix a typo

---
 llvm/docs/LangRef.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the llvm-commits mailing list