aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-02-12 03:41:30 +0000
committerJohn McCall <rjmccall@apple.com>2010-02-12 03:41:30 +0000
commit27935ee59c30b0d8b610ab676aab8e65350af932 (patch)
treec129e903837c066b2a825d24c7711b0f320ced4a /lib
parent982414266cbfbb3f2784c6b42f008532336ea64c (diff)
Waste two bits in every clang::Type so that the type class can be read
in a single byte-load rather than some crazy bitmunging operation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/Sema.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index 0ee16cae95..5ee790cefe 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -153,7 +153,7 @@ class LocInfoType : public Type {
enum {
// The last number that can fit in Type's TC.
// Avoids conflict with an existing Type class.
- LocInfo = (1 << TypeClassBitSize) - 1
+ LocInfo = Type::TypeLast + 1
};
TypeSourceInfo *DeclInfo;