aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-10-06 20:58:56 +0000
committerTed Kremenek <kremenek@apple.com>2008-10-06 20:58:56 +0000
commitde3b8fb02bd86a592fe5073020e6bdaf97902ffc (patch)
tree94a3a348b6b83467f727dc312654929e842dca8e /lib/CodeGen/CGObjCMac.cpp
parentf34afeed9a0112bf31fee185b6c80556111d3834 (diff)
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
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp2
1 files changed, 1 insertions, 1 deletions
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<VarDecl>(CatchParam->getDecl());
+ VD = cast<VarDecl>(CatchParam->getSolitaryDecl());
PT = VD->getType()->getAsPointerType();
// catch(id e) always matches.