From: Ted Kremenek Date: Mon, 6 Oct 2008 20:58:56 +0000 (+0000) Subject: Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when processing the... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de3b8fb02bd86a592fe5073020e6bdaf97902ffc;p=clang Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when processing the Decl of a @catch statement. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57208 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index e288057cb6..0f760eebed 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -1552,7 +1552,7 @@ void CGObjCMac::EmitTryStmt(CodeGen::CodeGenFunction &CGF, if (!CatchParam) { AllMatched = true; } else { - VD = cast(CatchParam->getDecl()); + VD = cast(CatchParam->getSolitaryDecl()); PT = VD->getType()->getAsPointerType(); // catch(id e) always matches.