[C++] Use 'nullptr'.
[oota-llvm.git] / include / llvm / ADT / ImmutableMap.h
index 8f8fb98770405c5efe3e800732f378dd6eaa4740..11f281be3d23ff73896c04224c8ff7b2b0ea4182 100644 (file)
@@ -241,14 +241,14 @@ public:
       if (T) return &T->getValue().second;
     }
 
-    return 0;
+    return nullptr;
   }
   
   /// getMaxElement - Returns the <key,value> pair in the ImmutableMap for
   ///  which key is the highest in the ordering of keys in the map.  This
   ///  method returns NULL if the map is empty.
   value_type* getMaxElement() const {
-    return Root ? &(Root->getMaxElement()->getValue()) : 0;
+    return Root ? &(Root->getMaxElement()->getValue()) : nullptr;
   }
 
   //===--------------------------------------------------===//