aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmy Kwan <amy.kwan1@ibm.com>2024-03-27 14:19:00 -0500
committerAmy Kwan <amy.kwan1@ibm.com>2024-03-27 14:42:01 -0500
commit685d7855acb28f89aa948e0056d2807bf30d3971 (patch)
treef94b9471c1981d66656ea3e42b8a90b43ed9b1c1
parent4a5056be2e38bdf27125a41f3f1b7ae4233f9713 (diff)
downloadllvm-685d7855acb28f89aa948e0056d2807bf30d3971.zip
llvm-685d7855acb28f89aa948e0056d2807bf30d3971.tar.gz
llvm-685d7855acb28f89aa948e0056d2807bf30d3971.tar.bz2
Fix the -Wmissing-designated-field-initializers on the clang-ppc64le-rhel bot
-rw-r--r--compiler-rt/lib/scudo/standalone/tests/strings_test.cpp2
-rw-r--r--compiler-rt/lib/scudo/standalone/tests/vector_test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp b/compiler-rt/lib/scudo/standalone/tests/strings_test.cpp
index 3e41f67..17a596d 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 b7678678..add62c5 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);