diff options
author | Pete Cooper <peter_cooper@apple.com> | 2012-05-21 23:21:28 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2012-05-21 23:21:28 +0000 |
commit | 243efd7ac348dcabcdd990689618639fdadf592f (patch) | |
tree | 72447a5362f3f3daaf1284a07b73be995b4eaa00 /llvm/lib/VMCore/Function.cpp | |
parent | 62ac08e4e6d955d2c375de15161ea48988a1f8c8 (diff) | |
download | bcm5719-llvm-243efd7ac348dcabcdd990689618639fdadf592f.tar.gz bcm5719-llvm-243efd7ac348dcabcdd990689618639fdadf592f.zip |
Added address space qualifier to intrinsic PointerType arguments.
llvm-svn: 157218
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index 5a2a56637e6..6339c6791d4 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp @@ -388,8 +388,11 @@ 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: - return PointerType::getUnqual(DecodeFixedType(NextElt, Infos, Tys,Context)); + case IIT_PTR: { + unsigned AddrSpace = Infos[NextElt++]; + Type *PtrTy = DecodeFixedType(NextElt, Infos, Tys,Context); + return PointerType::get(PtrTy, AddrSpace); + } case IIT_ARG: case IIT_EXTEND_VEC_ARG: case IIT_TRUNC_VEC_ARG: { |