summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/TimeValue.inc
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Unix/TimeValue.inc')
-rw-r--r--llvm/lib/Support/Unix/TimeValue.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/TimeValue.inc b/llvm/lib/Support/Unix/TimeValue.inc
index 58c7ba3094d..7d4acf7bf63 100644
--- a/llvm/lib/Support/Unix/TimeValue.inc
+++ b/llvm/lib/Support/Unix/TimeValue.inc
@@ -36,7 +36,7 @@ std::string TimeValue::str() const {
TimeValue TimeValue::now() {
struct timeval the_time;
timerclear(&the_time);
- if (0 != ::gettimeofday(&the_time,0)) {
+ if (0 != ::gettimeofday(&the_time,nullptr)) {
// This is *really* unlikely to occur because the only gettimeofday
// errors concern the timezone parameter which we're passing in as 0.
// In the unlikely case it does happen, just return MinTime, no error
OpenPOWER on IntegriCloud