[C++11] Use 'nullptr'.
[oota-llvm.git] / unittests / Support / TimeValueTest.cpp
index 8058812ff4ed2491f73cb4529923f0e63a1630d7..3d2b9780c069d3a7dbbe1373881d70a16306917c 100644 (file)
@@ -16,7 +16,7 @@ namespace {
 
 TEST(TimeValue, time_t) {
   sys::TimeValue now = sys::TimeValue::now();
-  time_t now_t = time(NULL);
+  time_t now_t = time(nullptr);
   EXPECT_TRUE(std::abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
 }