]> granicus.if.org Git - clang/commitdiff
Fix LLP64 build.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Sun, 13 Jan 2013 16:00:51 +0000 (16:00 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Sun, 13 Jan 2013 16:00:51 +0000 (16:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172357 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/SourceManager.h

index ec8f533dc1bb733e42197c0381e910600e97e934..d9b21ce60d8bd8ccae53da014ee7d9434e5dbe68 100644 (file)
@@ -271,7 +271,7 @@ namespace SrcMgr {
       return SourceLocation::getFromRawEncoding(IncludeLoc);
     }
     const ContentCache* getContentCache() const {
-      return reinterpret_cast<const ContentCache*>(Data & ~7UL);
+      return reinterpret_cast<const ContentCache*>(Data & ~uintptr_t(7));
     }
 
     /// \brief Return whether this is a system header or not.