[llvm] r242988 - Replace a 0 with nullptr. NFC
Craig Topper
craig.topper at gmail.com
Thu Jul 23 00:17:54 PDT 2015
Author: ctopper
Date: Thu Jul 23 02:17:53 2015
New Revision: 242988
URL: http://llvm.org/viewvc/llvm-project?rev=242988&view=rev
Log:
Replace a 0 with nullptr. NFC
Modified:
llvm/trunk/include/llvm/ADT/ArrayRef.h
Modified: llvm/trunk/include/llvm/ADT/ArrayRef.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ArrayRef.h?rev=242988&r1=242987&r2=242988&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ArrayRef.h (original)
+++ llvm/trunk/include/llvm/ADT/ArrayRef.h Thu Jul 23 02:17:53 2015
@@ -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
More information about the llvm-commits
mailing list