Removed "NULL" from default construction of FullSourceLoc (compilation errors on

some systems).

llvm-svn: 44953
This commit is contained in:
Ted Kremenek 2007-12-12 19:39:40 +00:00
parent 7ab71379b6
commit 9b7632eef8
1 changed files with 2 additions and 1 deletions

View File

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