aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-01-31 21:45:26 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-01-31 21:45:26 +0000
commit73e3e3c7b9ad1614f8d75d130be463a33e89352c (patch)
treed46e0d54cadd734b6f75eb78ef20a5fc16ba697d
parent8109d5e95de8d6d9c7400c18e099ce42cd90d2f1 (diff)
downloadllvm-73e3e3c7b9ad1614f8d75d130be463a33e89352c.zip
llvm-73e3e3c7b9ad1614f8d75d130be463a33e89352c.tar.gz
llvm-73e3e3c7b9ad1614f8d75d130be463a33e89352c.tar.bz2
NULL requires including cstddef. Just use 0.
llvm-svn: 149425
-rw-r--r--lld/include/lld/Core/Atom.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/include/lld/Core/Atom.h b/lld/include/lld/Core/Atom.h
index 101eb522..40df888 100644
--- a/lld/include/lld/Core/Atom.h
+++ b/lld/include/lld/Core/Atom.h
@@ -50,9 +50,9 @@ public:
virtual Definition definition() const = 0;
/// definedAtom - like dynamic_cast, if atom is definitionRegular
- /// returns atom cast to DefinedAtom*, else returns NULL;
- virtual const DefinedAtom* definedAtom() const { return NULL; }
-
+ /// returns atom cast to DefinedAtom*, else returns nullptr;
+ virtual const DefinedAtom* definedAtom() const { return 0; }
+
protected:
/// Atom is an abstract base class. Only subclasses can access constructor.
Atom() {}