[compiler-rt] 685d785 - Fix the -Wmissing-designated-field-initializers on the clang-ppc64le-rhel bot
Amy Kwan via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 27 12:42:35 PDT 2024
Author: Amy Kwan
Date: 2024-03-27T14:42:01-05:00
New Revision: 685d7855acb28f89aa948e0056d2807bf30d3971
URL: https://github.com/llvm/llvm-project/commit/685d7855acb28f89aa948e0056d2807bf30d3971
DIFF: https://github.com/llvm/llvm-project/commit/685d7855acb28f89aa948e0056d2807bf30d3971.diff
LOG: Fix the -Wmissing-designated-field-initializers on the clang-ppc64le-rhel bot
Added:
Modified:
compiler-rt/lib/scudo/standalone/tests/strings_test.cpp
compiler-rt/lib/scudo/standalone/tests/vector_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp b/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp
index 3e41f67ba922b7..17a596d712d0ca 100644
--- a/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp
@@ -136,7 +136,7 @@ TEST(ScudoStringsTest, CapacityIncreaseFails) {
rlimit Limit = {};
EXPECT_EQ(0, getrlimit(RLIMIT_AS, &Limit));
- rlimit EmptyLimit = {.rlim_max = Limit.rlim_max};
+ rlimit EmptyLimit = {.rlim_cur = 0, .rlim_max = Limit.rlim_max};
EXPECT_EQ(0, setrlimit(RLIMIT_AS, &EmptyLimit));
// Test requires that the default length is at least 6 characters.
diff --git a/compiler-rt/lib/scudo/standalone/tests/vector_test.cpp b/compiler-rt/lib/scudo/standalone/tests/vector_test.cpp
index b7678678d8a294..add62c5a42a3e4 100644
--- a/compiler-rt/lib/scudo/standalone/tests/vector_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/vector_test.cpp
@@ -55,7 +55,7 @@ TEST(ScudoVectorTest, ReallocateFails) {
rlimit Limit = {};
EXPECT_EQ(0, getrlimit(RLIMIT_AS, &Limit));
- rlimit EmptyLimit = {.rlim_max = Limit.rlim_max};
+ rlimit EmptyLimit = {.rlim_cur = 0, .rlim_max = Limit.rlim_max};
EXPECT_EQ(0, setrlimit(RLIMIT_AS, &EmptyLimit));
V.resize(capacity);
More information about the llvm-commits
mailing list