summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.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/SemaDeclObjC.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/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 3b05f5ac28d..5a2765c25be 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -1775,9 +1775,9 @@ Sema::DeclPtrTy Sema::ActOnObjCExceptionDecl(Scope *S, Declarator &D) {
if (getLangOptions().CPlusPlus)
CheckExtraCXXDefaultArguments(D);
- TypeSourceInfo *TInfo = 0;
TagDecl *OwnedDecl = 0;
- QualType ExceptionType = GetTypeForDeclarator(D, S, &TInfo, &OwnedDecl);
+ TypeSourceInfo *TInfo = GetTypeForDeclarator(D, S, &OwnedDecl);
+ QualType ExceptionType = TInfo->getType();
if (getLangOptions().CPlusPlus && OwnedDecl && OwnedDecl->isDefinition()) {
// Objective-C++: Types shall not be defined in exception types.
OpenPOWER on IntegriCloud