[libc-commits] [PATCH] D79469: [libc] Fix warnings on release build.
Paula Toth via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu May 7 11:57:57 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbf6f3894c4a8: [libc] Fix warnings on release build. (authored by PaulkaToast).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79469/new/
https://reviews.llvm.org/D79469
Files:
libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp
libc/utils/testutils/FDReaderUnix.cpp
Index: libc/utils/testutils/FDReaderUnix.cpp
===================================================================
--- libc/utils/testutils/FDReaderUnix.cpp
+++ libc/utils/testutils/FDReaderUnix.cpp
@@ -16,8 +16,8 @@
namespace testutils {
FDReader::FDReader() {
- int err = ::pipe(pipefd);
- assert(!err && "pipe(2) failed");
+ if (::pipe(pipefd))
+ llvm::report_fatal_error("pipe(2) failed");
}
FDReader::~FDReader() {
Index: libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp
===================================================================
--- libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp
+++ libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp
@@ -47,7 +47,6 @@
TEST(OffsetDistribution, NoAlignment) {
StudyConfiguration Conf;
Conf.BufferSize = 8192;
- Conf.AddressAlignment = Align::None();
Conf.Size.To = 1;
OffsetDistribution OD(Conf);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79469.262719.patch
Type: text/x-patch
Size: 876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200507/58090aa3/attachment.bin>
More information about the libc-commits
mailing list