NULL requires including cstddef. Just use 0.

llvm-svn: 149425
This commit is contained in:
Michael J. Spencer 2012-01-31 21:45:26 +00:00
parent 8109d5e95d
commit 73e3e3c7b9
1 changed files with 3 additions and 3 deletions

View File

@ -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() {}