aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/TimeValue.inc
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-28 04:05:08 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-28 04:05:08 +0000
commite73658ddbb995c432db9ae171798102a5a42ffda (patch)
tree9884185545168acee002d3fab1bc6f4e123ac0d1 /llvm/lib/Support/Unix/TimeValue.inc
parent09ced5f66b41107fedea949e1c1deee081ca51c7 (diff)
downloadllvm-e73658ddbb995c432db9ae171798102a5a42ffda.zip
llvm-e73658ddbb995c432db9ae171798102a5a42ffda.tar.gz
llvm-e73658ddbb995c432db9ae171798102a5a42ffda.tar.bz2
[C++] Use 'nullptr'.
llvm-svn: 207394
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 58c7ba3..7d4acf7 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