summaryrefslogtreecommitdiff
path: root/include/llvm/Support/FileSystem.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-07 04:17:22 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-07 04:17:22 +0000
commit34bc6b6e787f27b5c9e05c82de4c1b4ac9b117bc (patch)
tree8b1bfdc38d13cfbca1dbd93a0e77e8d1b89385c7 /include/llvm/Support/FileSystem.h
parentb81024bc6ef83ee4242b4fab77784a0b5ad4e1b8 (diff)
downloadllvm-34bc6b6e787f27b5c9e05c82de4c1b4ac9b117bc.tar.gz
llvm-34bc6b6e787f27b5c9e05c82de4c1b4ac9b117bc.tar.bz2
llvm-34bc6b6e787f27b5c9e05c82de4c1b4ac9b117bc.tar.xz
[C++11] Make use of 'nullptr' in the Support library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r--include/llvm/Support/FileSystem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index b511a8e203..52182a8e77 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/include/llvm/Support/FileSystem.h
@@ -814,7 +814,7 @@ public:
}
/// Construct end iterator.
- directory_iterator() : State(0) {}
+ directory_iterator() : State(nullptr) {}
// No operator++ because we need error_code.
directory_iterator &increment(error_code &ec) {
@@ -828,9 +828,9 @@ public:
bool operator==(const directory_iterator &RHS) const {
if (State == RHS.State)
return true;
- if (RHS.State == 0)
+ if (RHS.State == nullptr)
return State->CurrentEntry == directory_entry();
- if (State == 0)
+ if (State == nullptr)
return RHS.State->CurrentEntry == directory_entry();
return State->CurrentEntry == RHS.State->CurrentEntry;
}