summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCGNU.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-05-17 21:00:27 +0000
committerJohn McCall <rjmccall@apple.com>2010-05-17 21:00:27 +0000
commit96fa4845f7c0be1ca0dae2eae34d6dfcb1452a79 (patch)
tree58bffab5f3e4f4c6b3a3b72da63237522348dc39 /clang/lib/CodeGen/CGObjCGNU.cpp
parent0450cc684c6699a184b451116aa0efe850a11d4e (diff)
downloadbcm5719-llvm-96fa4845f7c0be1ca0dae2eae34d6dfcb1452a79.tar.gz
bcm5719-llvm-96fa4845f7c0be1ca0dae2eae34d6dfcb1452a79.zip
Clean up some more uses of getAs<ObjCInterfaceType>() that Fariborz pointed
out. The remaining ones are okay. llvm-svn: 103973
Diffstat (limited to 'clang/lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index a3b62d28a23..d35546bf6c6 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -1939,11 +1939,11 @@ void CGObjCGNU::EmitTryOrSynchronizedStmt(CodeGen::CodeGenFunction &CGF,
const ObjCObjectPointerType *OPT =
CatchDecl->getType()->getAs<ObjCObjectPointerType>();
assert(OPT && "Invalid @catch type.");
- const ObjCInterfaceType *IT =
- OPT->getPointeeType()->getAs<ObjCInterfaceType>();
- assert(IT && "Invalid @catch type.");
+ const ObjCInterfaceDecl *IDecl =
+ OPT->getObjectType()->getInterface();
+ assert(IDecl && "Invalid @catch type.");
llvm::Value *EHType =
- MakeConstantString(IT->getDecl()->getNameAsString());
+ MakeConstantString(IDecl->getNameAsString());
ESelArgs.push_back(EHType);
}
}
OpenPOWER on IntegriCloud