summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-01 04:28:32 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-01 04:28:32 +0000
commit947bca2cc94781cbb11cf978f9885f4c2a824631 (patch)
treeb07e6ec4b0ee4e51454fc64dfa7e06004fd3bf56 /clang/lib/CodeGen
parent38eae046cf9f126c8ebda0bde52141784d1e1a74 (diff)
downloadbcm5719-llvm-947bca2cc94781cbb11cf978f9885f4c2a824631.tar.gz
bcm5719-llvm-947bca2cc94781cbb11cf978f9885f4c2a824631.zip
ObjCAtCatchStmt's ParamStmt is always a DeclStmt.
llvm-svn: 65759
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index 549a6b9f524..26a11c90be5 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -1999,8 +1999,7 @@ void CGObjCMac::EmitTryOrSynchronizedStmt(CodeGen::CodeGenFunction &CGF,
for (; CatchStmt; CatchStmt = CatchStmt->getNextCatchStmt()) {
llvm::BasicBlock *NextCatchBlock = CGF.createBasicBlock("catch");
- const DeclStmt *CatchParam =
- cast_or_null<DeclStmt>(CatchStmt->getCatchParamStmt());
+ const DeclStmt *CatchParam = CatchStmt->getCatchParamStmt();
const VarDecl *VD = 0;
const PointerType *PT = 0;
OpenPOWER on IntegriCloud