aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-12-12 19:39:40 +0000
committerTed Kremenek <kremenek@apple.com>2007-12-12 19:39:40 +0000
commit21584fe015705ca1ea2d852b7ad188c4baf9ffcf (patch)
tree7e6d3bd8481c35c2358698d2d834b2482900c83c /include/clang/Basic/SourceLocation.h
parente0579f08d4a4ae57971b74ca1863106df4c6399f (diff)
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
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r--include/clang/Basic/SourceLocation.h3
1 files changed, 2 insertions, 1 deletions
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) {