[llvm] [docs] fix output question (PR #177842)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 31 16:57:02 PST 2026


https://github.com/Guo-yyds updated https://github.com/llvm/llvm-project/pull/177842

>From e92e02a9aa6c64e18b5b8ab5fee9cbcd543c20c1 Mon Sep 17 00:00:00 2001
From: m0_53063391 <1710065346 at qq.com>
Date: Sun, 25 Jan 2026 15:08:25 +0800
Subject: [PATCH] [docs] fix output question

---
 llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
index 001a314cb1331..123f122af77e4 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
@@ -429,7 +429,7 @@ at the LLVM IR for simple functions. For example:
 
     ready> 4+5;
     Read top-level expression:
-    define double @0() {
+    define double @__anon_expr() {
     entry:
       ret double 9.000000e+00
     }
@@ -484,7 +484,7 @@ control flow to actually make recursion useful :).
 
     ready> cos(1.234);
     Read top-level expression:
-    define double @1() {
+    define double @__anon_expr() {
     entry:
       %calltmp = call double @cos(double 1.234000e+00)
       ret double %calltmp



More information about the llvm-commits mailing list