aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/YAMLTraits.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-07 04:17:22 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-07 04:17:22 +0000
commitc10719f55d3babe47ce754ad4e4964c7cd90d6e8 (patch)
tree28574fe7c646e03e6660387f3595f098d75fcd3f /llvm/lib/Support/YAMLTraits.cpp
parent093edf8c7f4d44979376892303d101f02924c68f (diff)
downloadllvm-c10719f55d3babe47ce754ad4e4964c7cd90d6e8.zip
llvm-c10719f55d3babe47ce754ad4e4964c7cd90d6e8.tar.gz
llvm-c10719f55d3babe47ce754ad4e4964c7cd90d6e8.tar.bz2
[C++11] Make use of 'nullptr' in the Support library.
llvm-svn: 205697
Diffstat (limited to 'llvm/lib/Support/YAMLTraits.cpp')
-rw-r--r--llvm/lib/Support/YAMLTraits.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/YAMLTraits.cpp b/llvm/lib/Support/YAMLTraits.cpp
index 5472e0e..38f3ec7 100644
--- a/llvm/lib/Support/YAMLTraits.cpp
+++ b/llvm/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;
}
}