diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-09 04:20:00 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-09 04:20:00 +0000 |
commit | 725011e72f7b6fa358d953cffbb63f218e20af8b (patch) | |
tree | b61db4fb01e1e0b56165db0b2702774f483d3d6a /include/llvm/Support/FileSystem.h | |
parent | e4d89ec8de33c9ed3554dcc2b2391b7698dba1e3 (diff) | |
download | llvm-725011e72f7b6fa358d953cffbb63f218e20af8b.tar.gz llvm-725011e72f7b6fa358d953cffbb63f218e20af8b.tar.bz2 llvm-725011e72f7b6fa358d953cffbb63f218e20af8b.tar.xz |
[C++11] Replace some comparisons with 'nullptr' with simple boolean checks to reduce verbosity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 52182a8e77..b2a0677082 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -828,9 +828,9 @@ public: bool operator==(const directory_iterator &RHS) const { if (State == RHS.State) return true; - if (RHS.State == nullptr) + if (!RHS.State) return State->CurrentEntry == directory_entry(); - if (State == nullptr) + if (!State) return RHS.State->CurrentEntry == directory_entry(); return State->CurrentEntry == RHS.State->CurrentEntry; } |