]> granicus.if.org Git - clang/commitdiff
Removed "NULL" from default construction of FullSourceLoc (compilation errors on
authorTed Kremenek <kremenek@apple.com>
Wed, 12 Dec 2007 19:39:40 +0000 (19:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 12 Dec 2007 19:39:40 +0000 (19:39 +0000)
some systems).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44953 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/SourceLocation.h

index 60bba98abfb14cc256ec98d07e6e34cbba0ca9d2..9ee1f308c5e915a364a79fcdbb7c955a77fadf33 100644 (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) {