summaryrefslogtreecommitdiff
path: root/lib/VMCore/Type.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-06-16 21:17:17 +0000
committerChris Lattner <sabre@nondot.org>2011-06-16 21:17:17 +0000
commit6091eb9d7f7c371e4563952690a39ce0147c84a2 (patch)
treee6fa6eb224dc701719da4715014c61b992dee238 /lib/VMCore/Type.cpp
parente43d745b5cb7c3731627740bde882a5a5b212140 (diff)
downloadllvm-6091eb9d7f7c371e4563952690a39ce0147c84a2.tar.gz
llvm-6091eb9d7f7c371e4563952690a39ce0147c84a2.tar.bz2
llvm-6091eb9d7f7c371e4563952690a39ce0147c84a2.tar.xz
move the address space into the subclass data field, saving a word on PointerType.
This limits the # address spaces to 2^23, which should be good enough. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r--lib/VMCore/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 54fc5c599b..ae45d9aed4 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -533,7 +533,7 @@ VectorType::VectorType(const Type *ElType, unsigned NumEl)
PointerType::PointerType(const Type *E, unsigned AddrSpace)
: SequentialType(PointerTyID, E) {
- AddressSpace = AddrSpace;
+ setSubclassData(AddrSpace);
// Calculate whether or not this type is abstract
setAbstract(E->isAbstract());
}