[llvm] r321387 - Unbreak the build. Combining chrono with Optional is annoying.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 22 13:18:51 PST 2017
Author: d0k
Date: Fri Dec 22 13:18:50 2017
New Revision: 321387
URL: http://llvm.org/viewvc/llvm-project?rev=321387&view=rev
Log:
Unbreak the build. Combining chrono with Optional is annoying.
Modified:
llvm/trunk/unittests/Support/CachePruningTest.cpp
Modified: llvm/trunk/unittests/Support/CachePruningTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/CachePruningTest.cpp?rev=321387&r1=321386&r2=321387&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/CachePruningTest.cpp (original)
+++ llvm/trunk/unittests/Support/CachePruningTest.cpp Fri Dec 22 13:18:50 2017
@@ -27,10 +27,10 @@ TEST(CachePruningPolicyParser, Interval)
EXPECT_EQ(std::chrono::seconds(1), P->Interval);
P = parseCachePruningPolicy("prune_interval=2m");
ASSERT_TRUE(bool(P));
- EXPECT_EQ(std::chrono::minutes(2), P->Interval);
+ EXPECT_EQ(std::chrono::minutes(2), *P->Interval);
P = parseCachePruningPolicy("prune_interval=3h");
ASSERT_TRUE(bool(P));
- EXPECT_EQ(std::chrono::hours(3), P->Interval);
+ EXPECT_EQ(std::chrono::hours(3), *P->Interval);
}
TEST(CachePruningPolicyParser, Expiration) {
More information about the llvm-commits
mailing list