diff options
author | John McCall <rjmccall@apple.com> | 2010-06-04 23:28:52 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-06-04 23:28:52 +0000 |
commit | bf1a028246d884a540aeafa38e89be59a269b072 (patch) | |
tree | 0be4f916ce269566f6f242b150d6bd57e5f5761d /lib/Sema/SemaObjCProperty.cpp | |
parent | 6deecb0d46bcfd048e651d2db7c4fb0d6407da96 (diff) |
Alter the interface of GetTypeForDeclarator to return a TypeSourceInfo*.
This is never null, but the associated type might be.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r-- | lib/Sema/SemaObjCProperty.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 4200eb9ad3..f25ba640d6 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -41,8 +41,8 @@ Sema::DeclPtrTy Sema::ActOnProperty(Scope *S, SourceLocation AtLoc, !(Attributes & ObjCDeclSpec::DQ_PR_retain) && !(Attributes & ObjCDeclSpec::DQ_PR_copy))); - TypeSourceInfo *TSI = 0; - QualType T = GetTypeForDeclarator(FD.D, S, &TSI); + TypeSourceInfo *TSI = GetTypeForDeclarator(FD.D, S); + QualType T = TSI->getType(); if (T->isReferenceType()) { Diag(AtLoc, diag::error_reference_property); return DeclPtrTy(); |