From 73e3e3c7b9ad1614f8d75d130be463a33e89352c Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 31 Jan 2012 21:45:26 +0000 Subject: [PATCH] NULL requires including cstddef. Just use 0. llvm-svn: 149425 --- lld/include/lld/Core/Atom.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/include/lld/Core/Atom.h b/lld/include/lld/Core/Atom.h index 101eb5221bcd..40df888ecf53 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() {}