diff options
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 3 |
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) { |