diff options
author | Chris Lattner <sabre@nondot.org> | 2012-05-23 05:19:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-05-23 05:19:18 +0000 |
commit | 4f18aa8f040e9c4d259eaa1c9bd6d583624aaad5 (patch) | |
tree | 2e68449c1c03569a91931e37e39aac81fffe9f9e /llvm/lib/VMCore/Function.cpp | |
parent | 47ad0171910013a0499e68145a04a977a4d2c9d4 (diff) | |
download | bcm5719-llvm-4f18aa8f040e9c4d259eaa1c9bd6d583624aaad5.tar.gz bcm5719-llvm-4f18aa8f040e9c4d259eaa1c9bd6d583624aaad5.zip |
small refinement to r157218 to save a tiny amount of table size in the common
case.
llvm-svn: 157312
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index 6339c6791d4..d0479a95db3 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp @@ -388,7 +388,9 @@ static Type *DecodeFixedType(unsigned &NextElt, ArrayRef<unsigned char> Infos, return VectorType::get(DecodeFixedType(NextElt, Infos, Tys, Context), 16); case IIT_V32: return VectorType::get(DecodeFixedType(NextElt, Infos, Tys, Context), 32); - case IIT_PTR: { + case IIT_PTR: + return PointerType::getUnqual(DecodeFixedType(NextElt, Infos, Tys,Context)); + case IIT_ANYPTR: { // [ANYPTR addrspace, subtype] unsigned AddrSpace = Infos[NextElt++]; Type *PtrTy = DecodeFixedType(NextElt, Infos, Tys,Context); return PointerType::get(PtrTy, AddrSpace); |