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 | a48289a672e20587e95bcdd84d5c71d28eb3d2b8 (patch) | |
tree | 1feb8048a82bded579d8bd14d6cc8ec169aea86a /lib/VMCore/Function.cpp | |
parent | 82dd67a1c8edfacac45e31a868ef074248bccb12 (diff) |
small refinement to r157218 to save a tiny amount of table size in the common
case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 6339c6791d..d0479a95db 100644 --- a/lib/VMCore/Function.cpp +++ b/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); |