[llvm] 8bc8d2d - Use explicitly unsigned zero to prevent from a warning
Serge Pavlov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 17 01:36:39 PDT 2020
Author: Serge Pavlov
Date: 2020-06-17T15:35:55+07:00
New Revision: 8bc8d2d678a2d5724d097ee2a7d4b6e7ccce4f82
URL: https://github.com/llvm/llvm-project/commit/8bc8d2d678a2d5724d097ee2a7d4b6e7ccce4f82
DIFF: https://github.com/llvm/llvm-project/commit/8bc8d2d678a2d5724d097ee2a7d4b6e7ccce4f82.diff
LOG: Use explicitly unsigned zero to prevent from a warning
Added:
Modified:
llvm/unittests/Support/ProgramTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/ProgramTest.cpp b/llvm/unittests/Support/ProgramTest.cpp
index 920a255bd0ec..3025e6c859a8 100644
--- a/llvm/unittests/Support/ProgramTest.cpp
+++ b/llvm/unittests/Support/ProgramTest.cpp
@@ -357,7 +357,7 @@ TEST_F(ProgramEnvTest, TestExecuteAndWaitStatistics) {
&ExecutionFailed, &ProcStat);
ASSERT_EQ(0, RetCode);
ASSERT_TRUE(ProcStat);
- ASSERT_GT(ProcStat->PeakMemory, 0);
+ ASSERT_GT(ProcStat->PeakMemory, 0U);
ASSERT_GE(ProcStat->UserTime, std::chrono::microseconds(0));
ASSERT_GE(ProcStat->TotalTime, ProcStat->UserTime);
}
More information about the llvm-commits
mailing list