aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-03 07:41:46 +0000
committerChris Lattner <sabre@nondot.org>2009-02-03 07:41:46 +0000
commit00282d6e1194655a2e89f940bd6fa8484b52e666 (patch)
tree23256b7edf5e2f26e459133d12ce435d0ca4660e /include/clang/Basic/SourceManager.h
parent0d0bf8cf58b35302312cc155287fde3e81eb25a7 (diff)
reclaim my precious bit in FileInfo by ensuring that ContentCache objects
are 8-byte aligned. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index c21c221b5c..ce2aeccb90 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -144,7 +144,7 @@ namespace SrcMgr {
FileInfo X;
X.IncludeLoc = IL.getRawEncoding();
X.Data = (uintptr_t)Con;
- assert((X.Data & 3) == 0 &&"ContentCache pointer insufficiently aligned");
+ assert((X.Data & 7) == 0 &&"ContentCache pointer insufficiently aligned");
assert((unsigned)FileCharacter < 4 && "invalid file character");
X.Data |= (unsigned)FileCharacter;
return X;
@@ -154,7 +154,7 @@ namespace SrcMgr {
return SourceLocation::getFromRawEncoding(IncludeLoc);
}
const ContentCache* getContentCache() const {
- return reinterpret_cast<const ContentCache*>(Data & ~3UL);
+ return reinterpret_cast<const ContentCache*>(Data & ~7UL);
}
/// getCharacteristic - Return whether this is a system header or not.