[llvm-commits] [lld] r149425 - /lld/trunk/include/lld/Core/Atom.h
Michael J. Spencer
bigcheesegs at gmail.com
Tue Jan 31 13:45:27 PST 2012
Author: mspencer
Date: Tue Jan 31 15:45:26 2012
New Revision: 149425
URL: http://llvm.org/viewvc/llvm-project?rev=149425&view=rev
Log:
NULL requires including cstddef. Just use 0.
Modified:
lld/trunk/include/lld/Core/Atom.h
Modified: lld/trunk/include/lld/Core/Atom.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Atom.h?rev=149425&r1=149424&r2=149425&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Atom.h (original)
+++ lld/trunk/include/lld/Core/Atom.h Tue Jan 31 15:45:26 2012
@@ -50,9 +50,9 @@
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() {}
More information about the llvm-commits
mailing list