summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaObjCProperty.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-06-04 23:28:52 +0000
committerJohn McCall <rjmccall@apple.com>2010-06-04 23:28:52 +0000
commit8cb7bdfd33ebbf2f1dea9bb8f73cef89f1c489e9 (patch)
tree9d1b64d766137ee425f0f360e7cb04eb509e2085 /clang/lib/Sema/SemaObjCProperty.cpp
parenta03e6f85fefb461a05343f2af413f9453df78e0c (diff)
downloadbcm5719-llvm-8cb7bdfd33ebbf2f1dea9bb8f73cef89f1c489e9.tar.gz
bcm5719-llvm-8cb7bdfd33ebbf2f1dea9bb8f73cef89f1c489e9.zip
Alter the interface of GetTypeForDeclarator to return a TypeSourceInfo*.
This is never null, but the associated type might be. llvm-svn: 105503
Diffstat (limited to 'clang/lib/Sema/SemaObjCProperty.cpp')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index 4200eb9ad33..f25ba640d69 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud