diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-05 22:42:55 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-05 22:42:55 +0000 |
| commit | d2bccafe825b600c21c9593006975fe622a402ae (patch) | |
| tree | b794bd30c2e1636868d41f04f1bb55881b3a92fc /clang/lib/Sema | |
| parent | 65bb3116293d2a8e6938258e7dc00e078c1bb010 (diff) | |
| download | bcm5719-llvm-d2bccafe825b600c21c9593006975fe622a402ae.tar.gz bcm5719-llvm-d2bccafe825b600c21c9593006975fe622a402ae.zip | |
Patch to build qualifier on objective-c
pointer types. Fixes radar 7626768.
llvm-svn: 97847
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaType.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index 2fb5c84ac90..a79853afdc6 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/lib/Sema/SemaType.cpp @@ -1034,7 +1034,8 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S, const ObjCInterfaceType *OIT = T->getAs<ObjCInterfaceType>(); T = Context.getObjCObjectPointerType(T, (ObjCProtocolDecl **)OIT->qual_begin(), - OIT->getNumProtocols()); + OIT->getNumProtocols(), + DeclType.Ptr.TypeQuals); break; } T = BuildPointerType(T, DeclType.Ptr.TypeQuals, DeclType.Loc, Name); |

