diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-07 04:17:22 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-07 04:17:22 +0000 |
commit | 34bc6b6e787f27b5c9e05c82de4c1b4ac9b117bc (patch) | |
tree | 8b1bfdc38d13cfbca1dbd93a0e77e8d1b89385c7 /lib/Support/YAMLTraits.cpp | |
parent | b81024bc6ef83ee4242b4fab77784a0b5ad4e1b8 (diff) | |
download | llvm-34bc6b6e787f27b5c9e05c82de4c1b4ac9b117bc.tar.gz llvm-34bc6b6e787f27b5c9e05c82de4c1b4ac9b117bc.tar.bz2 llvm-34bc6b6e787f27b5c9e05c82de4c1b4ac9b117bc.tar.xz |
[C++11] Make use of 'nullptr' in the Support library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/YAMLTraits.cpp')
-rw-r--r-- | lib/Support/YAMLTraits.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/YAMLTraits.cpp b/lib/Support/YAMLTraits.cpp index 5472e0e1dd..38f3ec7c7f 100644 --- a/lib/Support/YAMLTraits.cpp +++ b/lib/Support/YAMLTraits.cpp @@ -47,7 +47,7 @@ Input::Input(StringRef InputContent, void *DiagHandlerCtxt) : IO(Ctxt), Strm(new Stream(InputContent, SrcMgr)), - CurrentNode(NULL) { + CurrentNode(nullptr) { if (DiagHandler) SrcMgr.setDiagHandler(DiagHandler, DiagHandlerCtxt); DocIterator = Strm->begin(); @@ -351,7 +351,7 @@ Input::HNode *Input::createHNodes(Node *N) { return new EmptyHNode(N); } else { setError(N, "unknown node kind"); - return NULL; + return nullptr; } } |