Replace a 0 with nullptr. NFC
authorCraig Topper <craig.topper@gmail.com>
Thu, 23 Jul 2015 07:17:53 +0000 (07:17 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 23 Jul 2015 07:17:53 +0000 (07:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242988 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ArrayRef.h

index c8795fd89e33e0b67eb0e0084fd0ca6fbe3b9949..f6cc4f4e7c35ba61c84092ea7d555732724b71b4 100644 (file)
@@ -85,7 +85,7 @@ namespace llvm {
 
     /// Construct an ArrayRef from a std::initializer_list.
     /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec)
-    : Data(Vec.begin() == Vec.end() ? (T*)0 : Vec.begin()),
+    : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()),
       Length(Vec.size()) {}
 
     /// Construct an ArrayRef<const T*> from ArrayRef<T*>. This uses SFINAE to