[libc-commits] [libc] [libc] Fix standard streams variable name typos in overlay mode. (PR #210728)
via libc-commits
libc-commits at lists.llvm.org
Mon Jul 20 07:49:48 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Alex Strelnikov (strel-12)
<details>
<summary>Changes</summary>
These appear to be a couple of copy/paste misses from #<!-- -->187522.
---
Full diff: https://github.com/llvm/llvm-project/pull/210728.diff
2 Files Affected:
- (modified) libc/src/stdio/linux/stdin.cpp (+1-1)
- (modified) libc/src/stdio/linux/stdout.cpp (+1-1)
``````````diff
diff --git a/libc/src/stdio/linux/stdin.cpp b/libc/src/stdio/linux/stdin.cpp
index 101a89922e078..629772714923e 100644
--- a/libc/src/stdio/linux/stdin.cpp
+++ b/libc/src/stdio/linux/stdin.cpp
@@ -29,6 +29,6 @@ LLVM_LIBC_VARIABLE(FILE *, stdin) = reinterpret_cast<FILE *>(&StdIn);
#else // overlay mode
-extern "C" FILE *stderr;
+extern "C" FILE *stdin;
#endif // LIBC_FULL_BUILD
diff --git a/libc/src/stdio/linux/stdout.cpp b/libc/src/stdio/linux/stdout.cpp
index a9e10b016e46c..d0731c9a218f3 100644
--- a/libc/src/stdio/linux/stdout.cpp
+++ b/libc/src/stdio/linux/stdout.cpp
@@ -29,6 +29,6 @@ LLVM_LIBC_VARIABLE(FILE *, stdout) = reinterpret_cast<FILE *>(&StdOut);
#else // overlay mode
-extern "C" FILE *stderr;
+extern "C" FILE *stdout;
#endif // LIBC_FULL_BUILD
``````````
</details>
https://github.com/llvm/llvm-project/pull/210728
More information about the libc-commits
mailing list