[libcxx-commits] [libcxx] 3c603f8 - [libcxx][fix] Rename incorrect filename variable
Joseph Huber via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 16 11:50:23 PDT 2024
Author: Joseph Huber
Date: 2024-08-16T13:50:05-05:00
New Revision: 3c603f857c26fd979ebff3a469c41ecc24bf548f
URL: https://github.com/llvm/llvm-project/commit/3c603f857c26fd979ebff3a469c41ecc24bf548f
DIFF: https://github.com/llvm/llvm-project/commit/3c603f857c26fd979ebff3a469c41ecc24bf548f.diff
LOG: [libcxx][fix] Rename incorrect filename variable
Summary:
This used an old name I forgot to fix, linter didn't catch it because it
was behind `ifdef` and the branch which I tested it on I forgot to
update the one I landed.
Added:
Modified:
libcxx/test/support/platform_support.h
Removed:
################################################################################
diff --git a/libcxx/test/support/platform_support.h b/libcxx/test/support/platform_support.h
index 0d4fa63b03f107..99e60f60c5998f 100644
--- a/libcxx/test/support/platform_support.h
+++ b/libcxx/test/support/platform_support.h
@@ -78,7 +78,7 @@ inline std::string get_temp_file_name() {
for (std::size_t i = 0; i < sizeof(Name); ++i)
if (Name[i] == 'X')
Name[i] = chars[rand() % strlen(chars)];
- FILE* file = fopen(filename, "w");
+ FILE* file = fopen(Name, "w");
if (!file)
abort();
if (fclose(file) == EOF)
More information about the libcxx-commits
mailing list