[C++11] Replace some comparisons with 'nullptr' with simple boolean checks to reduce...
[oota-llvm.git] / include / llvm / Support / YAMLParser.h
index cbe154464f32b5e32a77bd062107e9454d45027c..d9d632e00ebbc5f0792948be629865f0a2c9d0fe 100644 (file)
@@ -305,7 +305,7 @@ public:
     assert(Base && "Attempted to advance iterator past end!");
     Base->increment();
     // Create an end iterator.
-    if (Base->CurrentEntry == nullptr)
+    if (!Base->CurrentEntry)
       Base = nullptr;
     return *this;
   }