[cfe-commits] r44953 - /cfe/trunk/include/clang/Basic/SourceLocation.h

Ted Kremenek kremenek at apple.com
Wed Dec 12 11:39:41 PST 2007


Author: kremenek
Date: Wed Dec 12 13:39:40 2007
New Revision: 44953

URL: http://llvm.org/viewvc/llvm-project?rev=44953&view=rev
Log:
Removed "NULL" from default construction of FullSourceLoc (compilation errors on
some systems).

Modified:
    cfe/trunk/include/clang/Basic/SourceLocation.h

Modified: cfe/trunk/include/clang/Basic/SourceLocation.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/SourceLocation.h?rev=44953&r1=44952&r2=44953&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/SourceLocation.h (original)
+++ cfe/trunk/include/clang/Basic/SourceLocation.h Wed Dec 12 13:39:40 2007
@@ -209,7 +209,8 @@
   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) {





More information about the cfe-commits mailing list