From: Ted Kremenek Date: Wed, 12 Dec 2007 19:39:40 +0000 (+0000) Subject: Removed "NULL" from default construction of FullSourceLoc (compilation errors on X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21584fe015705ca1ea2d852b7ad188c4baf9ffcf;p=clang Removed "NULL" from default construction of FullSourceLoc (compilation errors on some systems). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44953 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index 60bba98abf..9ee1f308c5 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -209,7 +209,8 @@ class FullSourceLoc { const SourceManager* SrcMgr; public: // Creates a FullSourceLoc where isValid() returns false. - explicit FullSourceLoc() : Loc(SourceLocation()), SrcMgr(NULL) {} + explicit FullSourceLoc() + : Loc(SourceLocation()), SrcMgr((SourceManager*) 0) {} explicit FullSourceLoc(SourceLocation loc, const SourceManager& smgr) : Loc(loc), SrcMgr(&smgr) {