[libc-commits] [libc] c9a17d3 - [libc] Fix standard streams variable name typos in overlay mode. (#210728)
via libc-commits
libc-commits at lists.llvm.org
Mon Jul 20 12:51:12 PDT 2026
Author: Alex Strelnikov
Date: 2026-07-20T15:51:07-04:00
New Revision: c9a17d3e4690b50d68124f7207a1035237bb5c16
URL: https://github.com/llvm/llvm-project/commit/c9a17d3e4690b50d68124f7207a1035237bb5c16
DIFF: https://github.com/llvm/llvm-project/commit/c9a17d3e4690b50d68124f7207a1035237bb5c16.diff
LOG: [libc] Fix standard streams variable name typos in overlay mode. (#210728)
These appear to be a couple of copy/paste misses from #187522.
Added:
Modified:
libc/src/stdio/linux/stdin.cpp
libc/src/stdio/linux/stdout.cpp
Removed:
################################################################################
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
More information about the libc-commits
mailing list