From a48289a672e20587e95bcdd84d5c71d28eb3d2b8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 23 May 2012 05:19:18 +0000 Subject: 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 --- lib/VMCore/Function.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/VMCore/Function.cpp') 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 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); -- cgit v1.2.3